I have a folder on my Linux system that is cross-synchronized with other computers, some of them with Windows. The problem is that in that folder there are files that are "case duplicates", i.e. their file name is same except that one or more characters are uppercase vs. lowercase. For the Linux system this isn't a problem, but for the Windows system it is and it complains about duplicate file names.
Is there a simple command line way to find and replace such file names, something like "convert all file names to lowercase, if this results in two files with the same name append '1' to one of them"?