Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 1996 18:48:59 -0700
From:      Warner Losh <imp@village.org>
To:        Josh MacDonald <jmacd@CS.Berkeley.EDU>
Cc:        Wolfram Schneider <wosch@cs.tu-berlin.de>, hackers@freebsd.org
Subject:   Re: recursive grep 
Message-ID:  <199601230148.SAA01369@rover.village.org>
In-Reply-To: Your message of Mon, 22 Jan 1996 17:31:37 PST

next in thread | raw e-mail | index | archive | help

: > find /usr/local | xargs grep foo
: and why do we need an extra pipe, either?
: 
: 	find /usr/include -name \*f.h -exec grep foo {} /dev/null \;

The extra pipe will fork/exec grep once for each 100k or so characters
of command line args, while this will fork/exec grep for each file.
Guess which one is likely to be faster :-).

Warner




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601230148.SAA01369>