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

  • Search certain string in a directory
    ... I have a directory and several sub-directory and files reside within ... I'm wondering is there any command I can use to search for the ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Search certain string in a directory
    ... I have a directory and several sub-directory and files reside within ... I'm wondering is there any command I can use to search for the ... out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • RE: redhat-list digest, Vol 1 #8511 - 29 msgs
    ... To subscribe or unsubscribe via the World Wide Web, ... Command running on terminal at some intervals (Reuben D. ... Re: bash shell ... rsync with public/private keys/no passwords ...
    (RedHat)
  • RE: redhat-list digest, Vol 1 #8511 - 29 msgs
    ... To subscribe or unsubscribe via the World Wide Web, ... Command running on terminal at some intervals (Reuben D. ... Re: bash shell ... rsync with public/private keys/no passwords ...
    (RedHat)
  • Re: vim like completion in bash?
    ... If the OP still wants to make bash behave the same as mine -- among ... output of the "shopt" command ... there might be compile-time options that are relevant to TAB ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)