SLUG Mailing List Archives
Re: [SLUG] A command question.
- To: slug@xxxxxxxxxxx
- Subject: Re: [SLUG] A command question.
- From: Rick Welykochy <rick@xxxxxxxxxxxxx>
- Date: Sat, 15 Nov 2008 10:17:19 +1100
- User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:188.8.131.52) Gecko/20080829 SeaMonkey/1.1.12
Jeff Waugh wrote:
Is there a command that finds a file containing a certain word?
find and apropos don't. They work on filenames only.
grep ... and you can use -r to search through files/directories recursively.
You can also use -i to do a case insensitive search.
And there are dozens of other flags to confuse you!
man grep <=== tells all.
And to add to the mix, there are variants fgrep and egrep :)
Rick Welykochy || Praxis Services
Tis the dream of each programmer before his life is done,
To write three lines of APL and make the damn thing run.