advanced search using list of comma-separated values

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
graphicsxp
New Member
New Member
Posts: 1
Joined: 2015-05-28, 19:38 UTC

advanced search using list of comma-separated values

Post by *graphicsxp »

I have a list of comma-separated file names, say 1,2,3 and I'd like to find the files in a folder with these names:
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg

How can I do that with total commander ?
hi5
Power Member
Power Member
Posts: 642
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 »

To find files: Alt-F7, tick the RegEx box and enter your list using | not a , as a separator like so 1|2|3 and it will find files 1.jpg 2.jpg and 3.jpg in your list.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can also just put the names in a text file, one name per line. Then put a reference to that file in the "Search in" line, e.g.:
@c:\path\filelist.txt

From the help:
New: You can enter the name of a text file (ANSI, UTF-8 or UTF-16, the latter two with BOM) containing a list of files and directories to be searched, in the form @c:\path\filelist.txt. The file must contain one file/directory name per line, either an absolute path, or relative to the location of the list file. The text file now also supports wildcards and regular expressions.
Sample list: Description
c:\testdir\ Searches "c:\testdir" for files defined in "search for"
c:\testdir\*.txt *.doc Searches "c:\testdir" for txt and doc files
c:\testdir\<regular expression Searches "c:\testdir" using regular expression
c:\testdir\filename.txt Searches just for "filename.txt" in "c:\testdir"
New: Put '>' character in this field before saving the search to keep the "Search in" field unchanged when loading the saved search.
Author of Total Commander
https://www.ghisler.com
Post Reply