FSlint can find duplicate files. But suppose one has 10,000 songs or images and wants to find ONLY those files that are identical but have different names? Right now, I get a list that has hundreds of dupes (in different folders). I want the names to be consistent, so I want to see only the identical files with different names, not identical files with the same name.
Can FSlint with advanced parameters (or a different program) accomplish this?
Best Answer
I have another, far more flexible and easy to use solution for you!
Copy the script below and paste it to
/usr/local/bin/dupe-check
(or any other location and file name, you need root permissions for this one).Make it executable by running this command:
As
/usr/local/bin
is in every user's PATH, everybody may now run it directly without specifying the location.First, you should look at the help page of my script:
You see, to get a list of all files in the current directory (and all subdirectories) with different file names, you need the
-d
flag and any valid combination of formatting options.We still assume the same test environment. Files with similar name (and different number) have equal content:
So we simply run:
And here is the script: