Search for files in derectorues, which paths not includes substring

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nick58
Junior Member
Junior Member
Posts: 29
Joined: 2013-03-17, 21:55 UTC

Search for files in derectorues, which paths not includes substring

Post by *nick58 »

Hi.
I need to search for *.yaml files in current directory and all subdirectories with unlimited depth, but subdirectory path should not includes "/node_modules/" substring.
Is it possible with total commander?
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Search for files in derectorues, which paths not includes substring

Post by *nsp »

Set your search for .yaml files
Then switch to plugins tab:
Check "search in plugins"
Define a rule as following row:

Code: Select all

tc  path !contain /node_modules/
nick58
Junior Member
Junior Member
Posts: 29
Joined: 2013-03-17, 21:55 UTC

Re: Search for files in derectorues, which paths not includes substring

Post by *nick58 »

Ah, interesting, I will try, thank you.
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search for files in derectorues, which paths not includes substring

Post by *petermad »

Serch for:

Code: Select all

*.yaml|node_modules\
should also do it.

As the Help file says:
All masks after the pipe character | will be treated as exclude masks.
*.ini | windows\ finds all ini files except those in directories called "Windows" and their subdirs.
Last edited by petermad on 2022-05-21, 10:09 UTC, edited 1 time in total.
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
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: Search for files in derectorues, which paths not includes substring

Post by *massor »

petermad wrote: 2022-05-20, 18:55 UTC Serch for:

Code: Select all

*.yaml|node_modules/
should also do it.

As the Help file says:
All masks after the pipe character | will be treated as exclude masks.
*.ini | windows\ finds all ini files except those in directories called "Windows" and their subdirs.
So, how is correct?.. with forwardslash or backslash? Or it means different things?
User avatar
petermad
Power Member
Power Member
Posts: 14795
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Search for files in derectorues, which paths not includes substring

Post by *petermad »

So, how is correct?.. with forwardslash or backslash? Or it means different things?
My bad - it should have been a backslash - I have corrected my previous post now.
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
nick58
Junior Member
Junior Member
Posts: 29
Joined: 2013-03-17, 21:55 UTC

Re: Search for files in derectorues, which paths not includes substring

Post by *nick58 »

Thanks for answers, guys.
The problem is solved.
Post Reply