Find mask - Finding files beginning with... in multiple folders beginning with...

Advertisement

KrisR
Joined:
Posts:
4
Location:
Malta

Find mask - Finding files beginning with... in multiple folders beginning with...

I used to be able to do this... but for the life of me I'm missing one important step - I hope you can help.

What I need:
So, I have a directory/folder for each day. I need to perform a file mask to find .txt files with names beginning with Pea01B in the whole month.

Dir and folders:
/home/test/things/SAVE_20200101
/home/test/things/SAVE_20200102
/home/test/things/SAVE_20200103
/home/test/things/SAVE_20200104
/home/test/things/SAVE_20200105
/home/test/things/SAVE_20200106......etc


What I am doing:

Searching in all folders of January:

When I use *Pea01B*.lst;SAVE_202001*

see txt.PNG

What I get:

Instead from all files from folders beginning with SAVE_202001, I get all Pea01B text files from all SAVE_ folders. see txt2.PNG

Description: the wrong result

txt2.PNG

Description: What i'm doing

txt.PNG

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,605
Location:
Prague, Czechia

Re: Find mask - Finding files beginning with... in multiple folders beginning with...

It's not possible.
All you can do is to exclude all other folders, like:
Pea01B*.txt | SAVE_201*/; SAVE_20200[2-9]*/; SAVE_20201*/

Reply with quote

KrisR

Re: Find mask - Finding files beginning with... in multiple folders beginning with...

Thanks Martin. It's weird as I was able to do it last year, for sure.

But thanks for this alternative - will give it a go

Reply with quote

Advertisement

You can post new topics in this forum