Search for all the files starting with the name "ABC"

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
skandal
Junior Member
Junior Member
Posts: 9
Joined: 2023-01-26, 13:21 UTC

Search for all the files starting with the name "ABC"

Post by *skandal »

How to search for all the files starting with the name "ABC" in a directory? Maybe there is a plugin?
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Search for all the files starting with the name "ABC"

Post by *Gral »

Search for:

Code: Select all

ABC*
I assume you can run a search dialog window :) (ALT+F7)
User avatar
Dalai
Power Member
Power Member
Posts: 9387
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Search for all the files starting with the name "ABC"

Post by *Dalai »

If you want to find objects with this name on the current level only, you can also use Quick Search: Press Ctrl+S and type

Code: Select all

ABC*
to filter the current list, reducing it to matching items.

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
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Search for all the files starting with the name "ABC"

Post by *Gral »

Or filter on "Custom" dialog window - press CTRL+F12 and type:

Code: Select all

ABC*
and press OK
skandal
Junior Member
Junior Member
Posts: 9
Joined: 2023-01-26, 13:21 UTC

Re: Search for all the files starting with the name "ABC"

Post by *skandal »

What I meant was to search the directory for all files with similar names, differing only in the ending. When I don't know what the files are. So almost duplicates - differing only in the ending. I would like to delete all older ones.

Sorry, I misunderstood the problem.
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Search for all the files starting with the name "ABC"

Post by *Gral »

For really reliable duplicate search you can use "Advanced" tab of search dialog with "Find duplicate files" option enabled so you can search for duplicate with same name, same size, or same content (even with different name)
skandal
Junior Member
Junior Member
Posts: 9
Joined: 2023-01-26, 13:21 UTC

Re: Search for all the files starting with the name "ABC"

Post by *skandal »

almost "duplicate" - older copies of files, with different size, different content.
and having only the same beginnings of the name.

The effect should look like:
...................................
ABCDkjkllver1.1.zip
ABCDjhhhkkh.1.2.zip
ABCDxxvxs.1.5.zip
........................
Applicationfvhvjj.9.1,zip
Applicationffjgjj.9.2.zip
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: Search for all the files starting with the name "ABC"

Post by *Gral »

So previous advices applies depending on where the files are located, in the same directory, in subdirectories, different directories or scattered all over the disk or disks
skandal
Junior Member
Junior Member
Posts: 9
Joined: 2023-01-26, 13:21 UTC

Re: Search for all the files starting with the name "ABC"

Post by *skandal »

Well, let's establish that we are only looking for a folder. There are a huge amount of files with different names in it. Some of them are new versions of some of the files and differ in the ending of the name.

In Multi-rename tools in TC, I think it would be possible to add, for example, "Del" to the end of the name of similar files. And make erasing easier.
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Search for all the files starting with the name "ABC"

Post by *Hacker »

Ctrl-S - abc
?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search for all the files starting with the name "ABC"

Post by *petermad »

2skandal

How do you define "the same beginning of the name" - is is at least 4 charcters? (for example only 1 character would not make much sense).

in your example with:
ABCDkjkllver1.1.zip
ABCDjhhhkkh.1.2.zip
ABCDxxvxs.1.5.zip

if there is also a file named: ABCDkabcse1.1.zip should we then have two groups:

ABCDkjkllver1.1.zip
ABCDkabcse1.1.zip
(5 matching characters)

and

ABCDkjkllver1.1.zip
ABCDjhhhkkh.1.2.zip
ABCDxxvxs.1.5.zip
ABCDkabcse1.1.zip
(4 matching characters)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
skandal
Junior Member
Junior Member
Posts: 9
Joined: 2023-01-26, 13:21 UTC

Re: Search for all the files starting with the name "ABC"

Post by *skandal »

These were quick examples, and the amount of the same letters to define. In my case, it can easily be the first 4 letters, but also 10
So almost exactly what we have in Total Commander -> search/advanced find duplicates/same name, but also an additional option "only [x] consecutive same letters"
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search for all the files starting with the name "ABC"

Post by *petermad »

2skandal
So to make it clear: You know the number of characters in the start of the file name you want to find duplicates for, but you do NOT know what these characters are when you start the search? - you want TC to test every filename-start to all the other files?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
NotNull
Senior Member
Senior Member
Posts: 269
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Search for all the files starting with the name "ABC"

Post by *NotNull »

In the Find Files dialog ('ALT + F7'):
  • In the General tab:
    • Search in subdirectories = Current dir only
  • In the Advanced tab:
    • Enable Find duplicate files
    • Deselect all Find duplicate files options
    • Select same plugin fields
    • Set it to [=tc.name:1-9]
      Where 9 is the number of characters you want to match.
  • Press Start Search
  • Feed to listbox
  • Done.


Sidenote: I tried the Everything (1.5) method too (parent:"c:\this folder" regex:^(.{9}) dupe:regmatch1), but couldn't makeit work with TC. Probably the Everything SDK that needs to be updated (still alpha version; work in progress ...).
skandal
Junior Member
Junior Member
Posts: 9
Joined: 2023-01-26, 13:21 UTC

Re: Search for all the files starting with the name "ABC"

Post by *skandal »

*NotNull

WOW! The first way works great.
Thanks a lot, because doing it by hand was tiring :)
Post Reply