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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
grep -r "blahblahblah" /*