[TriLUG] Search for Duplicate Filename, Ignore Extension

Brian Blater brb.lists at gmail.com
Wed Nov 2 12:44:47 EDT 2011


Say I have a drive filled with files, be it images or music or
whatever, and I need to find duplicates of the files, but I what to
only find the dupes by filename and ignore the extension. For example
say I have an image called picture_of_me.jpg but I'm pretty sure that
was created from an original file with the same name but another
extension. I just want to find all files with the same filename
irregardless of it's extension.

I've looked at fslint and fdupes but they just appear to look at files
based on hashes and since a jpg is different than a tiff etc., nothing
is found. I would imagine this could be done with a simple script, but
I'm no scripting genius and any script I created would probably end up
being 100 lines when it only needed to be 1.

Any ideas from our gurus out there?

Thanks,
Brian



More information about the TriLUG mailing list