[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Search certain string in a directory



On 29 Apr 2007 20:04:03 -0700, rocky <rocky2winnie@gmail.com> 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



Reply to: