From: Samir Benmendil Date: Sun, 29 Oct 2023 16:52:57 +0000 (+0000) Subject: bin/find_duplicate: take folders from input args X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/fc5ef9f42f3a6f9688a1946f084651cf4bd7c3e6?ds=inline bin/find_duplicate: take folders from input args --- diff --git a/bin/find_duplicate b/bin/find_duplicate index b7ce1ba..4844611 100755 --- a/bin/find_duplicate +++ b/bin/find_duplicate @@ -1,5 +1,3 @@ #!/bin/bash -dirs=(/home/ramsi/Movies /mnt/Skaro/Movies) - -find "${dirs[@]}" -type f -printf '%H %P\n' | sed -r 's/\{[^}]+\}.*//' | sort -k1 | uniq -Df1 +find "$@" -type f -printf '%H %P\n' | sed -r 's/\{[^}]+\}.*//' | sort -k1 | uniq -Df1