grep

Marc Evans evans at decvax.dec.com
Wed Oct 31 23:12:36 AEST 1990


In article <64 at gdx.UUCP>, jay at gdx.UUCP (Jay A. Snyder) writes:
|> try:
|> find ./ -name "*" -exec grep "xyz" '{}' \;
|> 
|> the find command will execute any command in this manner.

It would be more efficient to use:

	find . -exec grep "xyz" '{}' \;

or if you have the xargs command:

	find . -print | xargs grep xyz

- Marc
-- 
===========================================================================
Marc Evans - WB1GRH - evans at decvax.DEC.COM  | Synergytics     (603)635-8876
      Unix and X Software Contractor        | 21 Hinds Ln, Pelham, NH 03076
===========================================================================



More information about the Comp.unix.questions mailing list