Avatar of Newton
Newton
Flag for India asked on

Linux find command only in few directories.

I am using Linux find command like the below

find . -name "*pass" -ctime -20.


My question is, in the current directory I have so many directories but I want to find only 5 directories..

Like find filename like *pass* that are modified in last 2 days and only in Dir1, Dir2,Dir3,Dir4 and Dir5 and ignore the rest.


Can help how to find only in few directories.








Linux

Avatar of undefined
Last Comment
noci

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
simon3270

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Newton

ASKER
Thanks Simon3270. It worked.
noci

man find is your friend... 
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy