Quick-n-Dirty duplicate mp3 finder script

René “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


RSS feed for comments on this post. TrackBack URI

  1. Using Mozilla Firefox Mozilla Firefox 8.0 on Linux Linux

    Cool one-liner! Thanks!

    I just cleaned up a bunch of dupes.

    Comment by Terry Carmen — December 26, 2011 #

  2. Using Mozilla Firefox Mozilla Firefox 7.0.1 on Linux Linux

    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 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.