I have a number of image files that have duplicates across case (ie file.jpg File.jpg). I need a script like the following except I want to completely remove all uppercase. I know that fslint can do this, but I want to do it in terminal because there are so many..
find . -maxdepth 1 -print0 | sort -z | uniq -diz
./mydir/myfiLe.jpg
be considered a duplicate of./otherdir/myfile.jpg
?