Quick-n-Dirty duplicate mp3 finder script
Posted by vostorga - 07/11/11 at 04:11:15 pmRené “Nepomusemo” Mayorga shared with me the following script to find out duplicate mp3 files in a specific directory:
find /media/music/ -not -empty -type f -printf “%s\n” | sort -rn | uniq -d | xargs -I{} -n1 find /media/music/ -type f -size {}c -print0 | xargs -0 md5sum | sort | uniq -w32 –all-repeated=separate
This script might be used to find duplicate files, though
2 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds.
Valid XHTML and CSS.
Cool one-liner! Thanks!
I just cleaned up a bunch of dupes.
Comment by Terry Carmen — December 26, 2011 #
I’ve updated the script, the second find must have the path where we are looking for duplicate files.
Comment by vostorga — December 28, 2011 #