I there a way to find all files in a directory with duplicate filenames, regardless of the casing (upper-case and/or lower-case)?
Case-insensitive search of duplicate file-names
case sensitivityduplicate filesfinduniq
case sensitivityduplicate filesfinduniq
I there a way to find all files in a directory with duplicate filenames, regardless of the casing (upper-case and/or lower-case)?
Best Answer
If you have GNU utilities (or at least a set that can deal with zero-terminated lines) available, another answer has a great method:
Note: the output will have zero-terminated strings; the tool you use to further process it should be able to handle that.
In the absence of tools that deal with zero-terminated lines, or if you want to make sure your code works in environments where such tools are not available, you need a small script:
What is this madness? See this answer for an explanation of the techniques that make this safe for crazy filenames.