LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find string pattern in directory of text files (https://www.linuxquestions.org/questions/linux-newbie-8/find-string-pattern-in-directory-of-text-files-104456/)

magnum818 10-15-2003 07:38 PM

Find string pattern in directory of text files
 
I'm looking for the command that searched every file in a particular directory for the string "http://pdx.freedesktop.org/~fontconfig/release/". I just want file names and path returned it doesn't have to return the line number or anything, but its ok if it does return extra info.

bobtmasse 10-15-2003 07:42 PM

The command you are looking for is GREP. Try "man grep" at the command prompt or you can look up the command online at:

http://techpubs.sgi.com/tpl.cgi/linux/man/

whansard 10-15-2003 08:19 PM

generally
grep "text to match" *.txt
change the *.txt to whatever you want, or just *
you can have it just list the path and filename or whatever you
wish with other options.


All times are GMT -5. The time now is 02:32 AM.