Link to home
Start Free TrialLog in
Avatar of Newton
NewtonFlag 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.








ASKER CERTIFIED SOLUTION
Avatar of simon3270
simon3270
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Newton

ASKER

Thanks Simon3270. It worked.
Avatar of noci
noci

man find is your friend...