recursive grep

Eduardo Krell ekrell at hector.UUCP
Wed Aug 23 11:00:22 AEST 1989


In article <13710 at polyslo.CalPoly.EDU> steve at polyslo.CalPoly.EDU (Steve DeJarnett) writes:

>	If you're trying to grep for a string in every file in or below the
>current directory, why not do this:
>
>	find . -type f -exec grep string {} \;

Because exec'ing one grep for each file is slower than exec'ing one
grep with multiple file arguments for each directory in the hierarchy.
    
Eduardo Krell                   AT&T Bell Laboratories, Murray Hill, NJ

UUCP: {att,decvax,ucbvax}!ulysses!ekrell  Internet: ekrell at ulysses.att.com



More information about the Comp.unix.wizards mailing list