From owner-freebsd-questions Sun Jul 14 09:33:42 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA22172 for questions-outgoing; Sun, 14 Jul 1996 09:33:42 -0700 (PDT) Received: from battra.telebase.com (battra.telebase.com [192.132.57.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id JAA22128 for ; Sun, 14 Jul 1996 09:33:36 -0700 (PDT) Received: from wormhole.telebase.com by battra.telebase.com id MAA02577 for ; Sun, 14 Jul 1996 12:32:59 -0400 (EDT) Received: from current.willscreek.com (root@current.willscreek.com [172.16.11.101]) by wormhole.telebase.com (8.7.4/8.6.9.1) with ESMTP id MAA02276 for ; Sun, 14 Jul 1996 12:32:57 -0400 (EDT) Received: (from bmc@localhost) by current.willscreek.com (8.7.5/8.6.9) id MAA00434; Sun, 14 Jul 1996 12:32:55 -0400 (EDT) Date: Sun, 14 Jul 1996 12:32:55 -0400 (EDT) Message-Id: <199607141632.MAA00434@current.willscreek.com> From: "Brian M. Clapper" To: questions@freebsd.org Subject: Re: Recursive grep. In-Reply-To: <30332740@toto.iv> Reply-To: Brian Clapper Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> "David" == David Kelly writes: David> I've always used with success: David> find -type f -exec grep -l {} \; 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