Posterous theme by Cory Watilo

Moving from a case-sensitive fs to a case ignorant one

I'm moving to a new mbp. I've got a time machine backup disk, but it's a case sensitive fs and my new mb is not. I've got a few music files that don't match up perfectly like "Lady Gaga" and "Lady GaGa"....hey, you gotta admit, she's got some catchy tunes.

Anyway, in order to find these and manually copy them over, I drop into the command line and run this:

 
find ./ | tr 'A-Z' 'a-z' | sort -rn | uniq -d 

This will give you a list of all the directories/files that are duplicates of each other in everything but their case. It's up to you after that to move the files to one directory or another.