Link to home
Start Free TrialLog in
Avatar of AXISHK
AXISHK

asked on

find a special string for all files in a directory

how to find a special string from all files in a particular directory in Redhat / Centos ?

Tks
Avatar of ozo
ozo
Flag of United States of America image

grep -r string directory
Avatar of AXISHK
AXISHK

ASKER

I mean the file content with special string pattern, not the filename....

Tks
to search for a filename pattern
find directory -name 'pattern'
ASKER CERTIFIED SOLUTION
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands 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 AXISHK

ASKER

Tks