LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Searching for text string in all files (http://www.linuxquestions.org/questions/linux-newbie-8/searching-for-text-string-in-all-files-866261/)

ortizmj 03-03-2011 01:54 PM

Searching for text string in all files
 
Is it possible to search ALL files on a system for a specific text string? I've been messing around with grep without any luck.

Thanks in advance!

PrinceCruise 03-03-2011 02:00 PM

Yes, I suppose you just have to type -

$ sudo find / -name "string-name"

ortizmj 03-03-2011 02:03 PM

Nevermind, I found the "-R" (recursive) option for grep! :)


All times are GMT -5. The time now is 04:48 PM.