[Chugalug] Duplicate file finder

Dan Lyke danlyke at flutterby.com
Fri Aug 2 20:12:56 UTC 2013

On Fri, Aug 2, 2013 at 1:11 PM, Dan Lyke <danlyke at flutterby.com> wrote:

> find . -type f -print | xargs md5sum | sort | perl -nale 'print "$lastfile
> is the same as $F[1]" if ($F[0] eq $lastmd5); ($lastmd5, $lastfile) = @F;'

Oh, whoops: That should probably use '-print0' for find and 'xargs -0',
which would let it handle filenames with spaces in them...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://chugalug.org/pipermail/chugalug/attachments/20130802/c81c29e3/attachment.html>

More information about the Chugalug mailing list