From owner-freebsd-questions Thu Mar 7 17: 4: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from linuxmail.touchtunes.com (operator.touchtunes.com [216.94.139.201]) by hub.freebsd.org (Postfix) with ESMTP id EB0D337B404 for ; Thu, 7 Mar 2002 17:03:58 -0800 (PST) Received: from sunder.touchtunes.com (sunder.touchtunes.com [192.168.0.26]) by linuxmail.touchtunes.com (8.9.3/8.8.7) with ESMTP id UAA30182; Thu, 7 Mar 2002 20:04:05 -0500 Received: (from dinjo@localhost) by sunder.touchtunes.com (8.11.6/8.11.6) id g2813ts02792; Thu, 7 Mar 2002 20:03:55 -0500 (EST) (envelope-from dinjo) Date: Thu, 7 Mar 2002 20:03:55 -0500 From: Joel Dinel To: Bara Zani Cc: freebsd-questions@FreeBSD.ORG Subject: Re: grep.... recursive searching Message-ID: <20020307200355.A2774@sunder.touchtunes.com> Mail-Followup-To: Joel Dinel , Bara Zani , freebsd-questions@FreeBSD.ORG References: <20020307101335.6460.qmail@web20102.mail.yahoo.com> <20020307091002.A45751@rochester.rr.com> <022d01c1c5e5$913b9bb0$fd6e34c6@moti> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <022d01c1c5e5$913b9bb0$fd6e34c6@moti>; from bara_zani@yahoo.com on Thu, Mar 07, 2002 at 09:37:09AM -0500 X-Useless-Header: Look ma, it's a # sign! X-Operating-System: FreeBSD 4.5-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG And what's wrong with 'grep -r' ? -r, --recursive Read all files under each directory, recursively; this is equivalent to the -d recurse option. On Thu, Mar 07, 2002 at 09:37:09AM -0500, Bara Zani wrote: > From: "Bara Zani" > To: "mpd" , > Subject: Re: grep.... recursive searching > Date: Thu, 7 Mar 2002 09:37:09 -0500 > X-Mailer: Microsoft Outlook Express 5.50.4522.1200 > > IMHO & AFAIK grep cant recurse through dirs > why not combine it with find ? > find /path -name whatever -exec grep pattern {} \; ? > > ----- Original Message ----- > From: "mpd" > To: > Sent: Thursday, March 07, 2002 9:10 AM > Subject: Re: grep.... recursive searching > > > > On Thu, Mar 07, 2002 at 02:13:35AM -0800, Bsd Neophyte wrote: > > > > > > I'm reading up on grep... (thanks for the explaining the find command... > > > that let me move forward)... and i've noticed that while you can search > > > for a "regular expression" (did I use that right?) there is no mention > of > > > any ability to do a recursive search. > > > > > > i checked the man page and seached for the "regular expression" (this > will > > > be on a quiz tomorrow... that's why i'm using it so much :D ) > "recursive" > > > but nothing came up. > > > > > > is there some uncomplicated way of doing a recursive search with grep? > > > > > > -Sameer > > > > > > > I'm more curious of a way to make it recurse through all the > > directories, but only try to match on certain files. > > Is this even possible with this version of grep? The fm (of > > rtfm fame) isn't giving me any epiphanies. > > > > mike > > -- > > ___________________________________________________________ > > > > "POKEY I WANT TO BUY AN EIGHT FOOT TALL CRIME > > FIGHTING ROBOT!!" > > - Little Girl from "REQUEST DENIED THEN GRANTED" > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message ---end quoted text--- -- Joel Dinel System Administrator TouchTunes Digital Jukebox, Inc. GnuPG key : http://darkhost.mine.nu:81/~joel/misc/mykey.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message