I'd use
for this kind of stuff.diff -r . Duplicates
If you want to go Perl, I wonder why using SHA1 checksums would make the whole process better than comparing the data into the files directly - speaking of photos, you can probably accept to slurp both files and use the eq operator. Things would change if you saved the checksums for the reference directory in a file that you load at the start of the program: following invocations would avoid reading the original files giving you a benefit.
Also note that you should be able to find modules dealing with SHA1, avoiding to call a subprocess for this.
Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf
In reply to Re: Comparing duplicate pictures in different directories
by polettix
in thread Comparing duplicate pictures in different directories
by cajun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |