How to show duplicate filenames, ignoring file extensions?

Discussion related to "Everything" 1.5.
Post Reply
PeterS
Posts: 9
Joined: Fri Jul 18, 2025 1:10 am

How to show duplicate filenames, ignoring file extensions?

Post by PeterS »

Hello,

Let's say I have a folder with these files in it

cat.mp3
cat.wav
dog.mp3
dog.wav
turtle.mp3


I want to have the search results be all duplicate filenames ignoring the file extensions.
So the search results will be only:

cat.mp3
cat.wav
dog.mp3
dog.wav

Then I want to sort the results by extension to get rid of the mp3s that have the same names as wavs.

Or maybe there's a simpler way to get the end result I really want, which is to show me all the mp3s
that, disregarding/ignoring the file extensions, have the same filenames as the wavs in the folder.

(some duplicate file finder program I use does not ignore extensions, so I cannot tell it to see cat.mp3 and cat.wav as duplicate filenames)

( I cannot just sort the folder by extensions, because the grouping of mp3s will include files that do not have, duplicate filenames,
in this example turtle.mp3)

So how can I get to:

cat.mp3
dog.mp3


from this:

cat.mp3
cat.wav
dog.mp3
dog.wav
turtle.mp3

I have a folder with a few thousand files in it which are mp3s and wavs,
many, many, but not all, of the files have, disregarding the file extensions, duplicate filenames.

I want to see the files that are, ignoring the extensions, duplicate filenames.

Then I want to delete the mp3 versions of the same name files.

Thank you for any ideas to try.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to show duplicate filenames, ignoring file extensions?

Post by void »

I want to have the search results be all duplicate filenames ignoring the file extensions.
So the search results will be only:
To find duplicate stems, for wav and mp3 files, include the following in your search:

ext:wav;mp3 dupe:stem


Finding duplicates in Everything 1.5

edit: Use the following to only show mp3/wav files where the same stem exists in the same location:

ext:wav;mp3 dupe:stem;path




Then I want to sort the results by extension to get rid of the mp3s that have the same names as wavs.
For more control, please try:

<regex:^(.*)\.mp3$ fileexists:$1:.wav>|<regex:^(.*)\.wav$ fileexists:$1:.mp3> sort:ext


This will only show mp3/wav files where the same stem exists in the same location.

< > == grouping.
regex: == enable regular expressions.
^ == match start of filename.
(.*) == match the stem and capture it in regmatch1.
\.mp3 == match the extension.
$ == match the end of the filename.
| = OR

file-exists:



If you only want to show the mp3 files:

regex:^(.*)\.mp3$ fileexists:$1:.wav
PeterS
Posts: 9
Joined: Fri Jul 18, 2025 1:10 am

Re: How to show duplicate filenames, ignoring file extensions?

Post by PeterS »

For now I stick with the non regex techniques.

This what you gave above works great:

ext:wav;mp3 dupe:stem

In my case I'm happy to just take the results and move them to another folder, then sort them by extension there and delete the mp3s.

Thank you so much for your help with this.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to show duplicate filenames, ignoring file extensions?

Post by void »

Use the following to only show mp3/wav files where the same stem exists in the same location:

ext:wav;mp3 dupe:stem;path
Post Reply