Date: Sun, 14 Jul 1996 12:32:55 -0400 (EDT) From: "Brian M. Clapper" <bmc@WillsCreek.COM> To: questions@freebsd.org Subject: Re: Recursive grep. Message-ID: <199607141632.MAA00434@current.willscreek.com> In-Reply-To: <30332740@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "David" == David Kelly <dkelly@hiwaay.net> writes: David> I've always used with success: David> find <tree-root> -type f -exec grep -l <pattern> {} \; David> usually use "grep -il ..." but you get the idea. The `xargs' solution is typically faster, as it will invoke fewer instances of `grep'. Using find's `-exec' parameter will result in an invocation of `grep' for each file found. ----- Brian Clapper ....................... bmc@WillsCreek.COM -or- bmc@telebase.com http://www.netaxs.com/~bmc/ ......... PGP public key available on request 'Martyrdom' is the only way a person can become famous without ability. -- George Bernard Shaw
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607141632.MAA00434>