Link to home
Start Free TrialLog in
Avatar of mlegros
mlegros

asked on

Command for finding a string in multiple files and directories

Hello,

I need to find a specific string in an unkowned file in an unkowned directory.  How do i do that ?

For example, i wanna know which files can contained the password "blahblahblah" on my server.  But i don't know exactly which files could have it... neither their specific location.

In windows i would search for the string "blahblahblah" in any kind of files in any directories...  How can i do that with a unix command ?!

Thanks !

Martin
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America 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
if using gnu grep,

grep -r "blahblahblah" /*