iTunes Love and Hate
Wed, 2009-03-11 17:03 | by Erin
5 years of work gone!
I like Mac's. I have been using one at work and at home for a little more than a year now and I can say that problems are slightly less than I had with Linux or Windows. I like iTunes also. When I could I always used it. The last time I reinstalled my Mac OS on my mini, I made a horible. Mistake. I forgot to un-check "Keep iTunes Music Organized".
SHIT
5 years of carefully organizing my music by genera, then artist and album. GONE. Now my Music Folder looks like some one threw up a bunch of disconnected stuff in it. I am pretty upset. My fault I know but still I am upset.
So my music is now a disaster of files and folders with duplicates all over. SUCK. I decided I at least needed to do something about the duplicates.
I opened a terminal window and started with a find the after I created the list I removed all the duplicates with a while read statement. Not the sexiest thing I have ever seen but it worked.
erin@erin:~/Music$ find . -name "*1.mp3" -o -name "*2.mp3" -o -name "*3.mp3" -o -name "*4.mp3" >> rmsongs.txt
erin@erin:~/Music$ cat rmsongs2.txt | while read LINE ; do rm "$LINE" ; done
You will want to replace the rm with ls or echo the first time through to make sure it is removing right files.
I like Mac's. I have been using one at work and at home for a little more than a year now and I can say that problems are slightly less than I had with Linux or Windows. I like iTunes also. When I could I always used it. The last time I reinstalled my Mac OS on my mini, I made a horible. Mistake. I forgot to un-check "Keep iTunes Music Organized".

You will want to replace the rm with ls or echo the first time through to make sure it is removing right files.