Duplicate file finder
2013-08-02 21:01:10.152483+00 by Dan Lyke 0 comments
Discussion on the Chugalug mailing list about finding duplicated files, I thought for a moment, whipped up this, and then realized it'd be generally useful when I got home.
find . -type f -print0 | xargs -0 md5sum | sort | perl -nale 'print "$lastfile is the same as $F[1]" if ($F[0] eq $lastmd5); ($lastmd5, $lastfile) = @F;'