Find duplicate files (but without extensions)

Here is my problem:

I want to search all files which have the same filename, but different extensions.

For example, if there is "source.txt" and "source.pdf", then I want to delete "source.txt". BUT if there is no "source.pdf", then the .txt should stay! (That is why I cannot just delete all .txt files). To complicate matters more, there might be different extensions (e.g. .rtf).

Is this possible with the duplicate search?

You can do this with a function like this:

@nodeselect
select "{file|noext}.*"

This will select all files matching the ones you have currently selected (same name, different extensions).

As I wrote, I want to search for such files, not select them. That is what I mean by "Find duplicate files (but without extensions)".

In other words, if there were such an option, I would I select "Find duplicate files", then "Comparison method: filename only" but "Without extension".

What can't you do with a selection that you can do with search results? You could always add the selected files to a collection which will give you the same thing.

If the only issue is that you need to search into sub-folders then Flat Mode should solve that problem.

I am sorry, but you seem to miss the point...

The duplicate files find should give me the names of the files which are duplicated. I do not know what files have duplicate names beforehand, right? That is the whole point of the search.

I want to search the whole folder structure with (presumably many) files which have duplicate names, but different extensions.

Ok, I finally understand.

No, the duplicate file finder doesn't work like that. Sorry.

Got ya.

Is this something you'll need to do often or just a one-off?

If it's just a one-off then PM me the list of files and I'll generate the list of duplicates for you. It'd be pretty easy to generate via Excel or a quick program (depending on the size of the list).

Thank you!

It will be one-time job. I don't have the files, yet, though.

I have this wild idea also: to strip the extensions while copying the files to folders named after extensions.

E.g.:
source.pdf > pdf\source.bak
source.txt > txt\source.bak

Then generate the list of duplicates and copy it to some other collection.

After that rename all the files I want to get rid of first (e.g. txt) - they will change the names in collection, too.

Sort the collection and remove the unwanted files.

Rinse and repeat.

Move back the remaining files from the folders.