Command to find duplicate file names recursively?
I'm trying to modify this command to find duplicate file names recursively throughout all subdirectories, but I only duplicate file names in the same directory. Currently this command finds all duplicates whether they are in the same folder or not. I want to find duplicates case insensitive... i.e. SaMpLe001.jpg and sample001.jpg would could as duplicates.
Currently I have
find / -type d -exec ls {} \; | tr '[:upper:]' '[:lower:]' | sort | uniq -d > duplicates.txt
Thanks.
MacBook Pro, macOS Sierra (10.12.3), Retina 15"