on Sun, Oct 29, 2000 at 12:36:17PM -0800, Erik Steffl (steffl@bigfoot.com) wrote:
> or slightly more effective:
>
> find . -type f |xargs grep char_string /dev/null
I prefer:
$ find . -type f -print0 | xargs --null zgrep -l pattern
...though as noted, the "grep -r" construct is simpler when pattern
matching of filenames isn't required of find.
The "-print0" and "--null" switches allow matching of filenames with
spaces in them, should any occur, by using an ASCII null as a delimiter
rather than whitespace.
--
Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself
Evangelist, Opensales, Inc. http://www.opensales.org
What part of "Gestalt" don't you understand? There is no K5 cabal
http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
Attachment:
pgpEa5kS9pMnX.pgp
Description: PGP signature