LinuxQuestions.org

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

ortizmj 03-03-2011 12: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 01:00 PM

Yes, I suppose you just have to type -

$ sudo find / -name "string-name"

ortizmj 03-03-2011 01:03 PM

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


All times are GMT -5. The time now is 02:34 PM.