[TriLUG] Search for Duplicate Filename, Ignore Extension
neilson at windstream.net
Wed Nov 2 13:11:45 EDT 2011
I'd use locate, assuming I have updatedb running. Try
and see what you get.
On Wed, 02 Nov 2011 12:44:47 -0400, Brian Blater <brb.lists at gmail.com>
> 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?
More information about the TriLUG