From: Samir Benmendil Date: Sun, 22 May 2016 20:46:01 +0000 (+0100) Subject: bin: Add find_duplicate X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/2b382eff8a6f172bb01e6f0606377c6e2f6e3172 bin: Add find_duplicate --- diff --git a/bin/find_duplicate b/bin/find_duplicate new file mode 100755 index 0000000..b7ce1ba --- /dev/null +++ b/bin/find_duplicate @@ -0,0 +1,5 @@ +#!/bin/bash + +dirs=(/home/ramsi/Movies /mnt/Skaro/Movies) + +find "${dirs[@]}" -type f -printf '%H %P\n' | sed -r 's/\{[^}]+\}.*//' | sort -k1 | uniq -Df1