LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Which command to search text/phrase in file? (https://www.linuxquestions.org/questions/linux-general-1/which-command-to-search-text-phrase-in-file-308027/)

b:z 03-30-2005 08:57 PM

Which command to search text/phrase in file?
 
Example: i want to find the phrase "wonderful day", i'm sure that it is contained in another files (i don't know what it is).
Which command can i find the phrase in more and more files (linux system).

Plesea tell me, thanks so much.

slakmagik 03-30-2005 09:11 PM

grep, specifically with the -R (recursive) option if you're not sure exactly where and -i (insensitive) if you're not sure of the case. And, with a phrase, quote it. 'man grep' for details.

bigrigdriver 03-30-2005 09:11 PM

http://www.cpqlinux.com/find.html


All times are GMT -5. The time now is 06:04 AM.