From c82b73c0a511e490160e69cba9d4c10478d56698 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Sun, 29 Oct 2023 16:52:57 +0000 Subject: [PATCH] bin/find_duplicate: take folders from input args --- bin/find_duplicate | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.48.1