Re: Search certain string in a directory



On 29 Apr 2007 20:04:03 -0700, rocky <rocky2winnie@xxxxxxxxx> wrote:
Hey,

I have a directory and several sub-directory and files reside within
it. I'm wondering is there any command I can use to search for the
certain tring's ocurence? Can any of you help me please?


From the manpage of grep(1):
grep, egrep, fgrep, rgrep - print lines matching a pattern

The -r option to grep might fit your need. Also see find(1) if you
find yourself needing something more selective.

--
Kushal


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages