X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/091c19eecfe3a16f90c49a6e591b8e551ee02d9c..2b382eff8a6f172bb01e6f0606377c6e2f6e3172:/bin/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