From owner-freebsd-questions Sat Jul 13 20:13:46 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA29172 for questions-outgoing; Sat, 13 Jul 1996 20:13:46 -0700 (PDT) Received: from nexgen.ampr.org (max12-92.HiWAAY.net [206.104.16.92]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id UAA29167 for ; Sat, 13 Jul 1996 20:13:39 -0700 (PDT) Received: (from dkelly@localhost) by nexgen.ampr.org (8.7.5/8.6.12) id WAA09804; Sat, 13 Jul 1996 22:13:28 -0500 (CDT) Message-ID: X-Mailer: XFMail 0.4-prerelease [p0] on FreeBSD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit MIME-Version: 1.0 In-Reply-To: <199607140128.SAA09139@athena.tera.com> Date: Sat, 13 Jul 1996 22:10:03 -0500 (CDT) Organization: Amateur Radio N4HHE, Madison, AL. From: David Kelly To: Gary Kline Subject: Re: Recursive grep. Cc: tcg@ime.net, questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On 23:28:33 Gary Kline wrote: >>According to Gary Chrysler: >> Sean Kelly wrote: >> > >> > >>>>> "Gary" == Gary Chrysler writes: >> > >> > Gary> Could someone please show me an example using grep to search >> > Gary> through files in a tree. ie: recursivly. >> > >> > find -type f | xargs grep /dev/null > > If some of you unix command wizards will indulge > me: why is ``/dev/null'' at the end of the > command?? I dunno, but I'm not a Unix wizard. :-) I've always used with success: find -type f -exec grep -l {} \; usually use "grep -il ..." but you get the idea.