Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] A command question.

Jeff Waugh wrote:

<quote who="wbennett@xxxxxxxxxxxxxxxxx">

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.