The UNIX Way of Removing iTunes Duplicate Songs
After recovering from a horrific NAS crash (Kids, trust me… Use RAID 5 instead of RAID 0) my iTunes library has some duplicate songs. Now instead of filtering through them by hand, Adam Kalsey has pointed out a simple UNIX utility called Duff can compare files based on their name and file sizes.
I sent Duff’s output to a text file with the command
duff -r /Volumes/music/ > duplicatemusic.txt
Once Duff was done running, I ran a short command to grab all the lines from the output that end in 1.mp3 and delete them.
