Thanks Gordon, it saved me the time.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Gordon Messmer
Sent: Wednesday, June 26, 2002 5:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Unix command ??

On Wed, 2002-06-26 at 14:05, Robert P. J. Day wrote:
> 
> p.s.  although you might think hard about being more selective about
> the directories you want to search than just starting at /.

No doubt... Searching through /dev is, in particular, a bad idea.  There
are a number of files in there that grep would search forever. (random,
urandom, zero, most any character device)

Give "grep -r" a more specific target is a good idea.  Also, you might
get more flexibility out of a combination of find + xargs grep.  "find"
can be told what kind of files you want searched.  For instance, to
search regular files (which you definitely want, at a minimum) that end
in .txt, use:
find /target -type f -name '*.txt' | xargs grep enable




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to