Pete's Linux Advent Calendar 2008

The 8th day

Finding duplicate files

Here's one way to find duplicate files:
find "${@:-.}" -type f -size +0 -print0 | xargs -0 md5sum | sort | uniq -w32 -D
It calculates the md5sums of every file and prints the filenames with equal checksums.
Pete's Linux Advent Calendar 2008

Valid HTML 4.01!

Comments? send mail to pkruse@arcor.de my monogram