Flutterby™! : Duplicate file finder

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

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;'

[ related topics: Interactive Drama Perl Open Source Community hubris ]

comments in ascending chronological order (reverse):