Afficher un message
Vieux 30/04/2007, 06h20   #2
Kushal Kumaran
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
 
Page generated in 0,07784 seconds with 9 queries