Search for only the first 30 characters in file names and remove duplicates

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Ironclaw
Junior Member
Junior Member
Posts: 4
Joined: 2020-08-14, 16:16 UTC

Search for only the first 30 characters in file names and remove duplicates

Post by *Ironclaw »

Hi, I have loads of files that for example look like this "Planets 2020-10-09 18-23-26-81.mp4", but the numbers are random, and many of them are duplicated but with different dates and file-sizes, so I need to find all the duplicates that has the same file names up to the first 30 characters, ignoring anything after, as some files could be named like the one above, but end with something like: "Overwatch 2018-12-26 18-23-26-814_898773-333.mp4"

I know how to search for duplicates, and the different filters like only check file size, file name, and/or date, but not how to make the search only checking the first 30 characters.

Thanks for any help.
Ironclaw
Junior Member
Junior Member
Posts: 4
Joined: 2020-08-14, 16:16 UTC

Re: Search for only the first 30 characters in file names and remove duplicates

Post by *Ironclaw »

The best I found during my search was for columns only, not searching, and dunno how to use that method for searching instead. viewtopic.php?t=47435
User avatar
Dalai
Power Member
Power Member
Posts: 10024
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Search for only the first 30 characters in file names and remove duplicates

Post by *Dalai »

Try tab Advanced

Code: Select all

[X] Find duplicate files [ ] same name [ ] same size [ ] same contents
[X] same plugin fields: [=tc.name:1-30]
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ironclaw
Junior Member
Junior Member
Posts: 4
Joined: 2020-08-14, 16:16 UTC

Re: Search for only the first 30 characters in file names and remove duplicates

Post by *Ironclaw »

Dalai wrote: 2020-08-14, 16:35 UTC Try tab Advanced

Code: Select all

[X] Find duplicate files [ ] same name [ ] same size [ ] same contents
[X] same plugin fields: [=tc.name:1-30]
Regards
Dalai
Oh, there's where the code is supposed to be put. I tried all kinds of combinations, but in the Value field under the Plugins tab.

Anyway, no matter the number combination I try, it finds and lists all files anyway, no sorting.
Ironclaw
Junior Member
Junior Member
Posts: 4
Joined: 2020-08-14, 16:16 UTC

Re: Search for only the first 30 characters in file names and remove duplicates

Post by *Ironclaw »

Ooooh, good thing I tried this: turns out I needed to include the brackets "[=tc.name:1-30]", as I first only entered "=tc.name:1-30". My bad.

It works, thanks so much :)
Post Reply