From owner-freebsd-questions Thu Mar 7 7:58: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from roc-66-66-72-6.rochester.rr.com (roc-66-66-72-6.rochester.rr.com [66.66.72.6]) by hub.freebsd.org (Postfix) with ESMTP id ABCB137B416 for ; Thu, 7 Mar 2002 07:57:57 -0800 (PST) Received: by roc-66-66-72-6.rochester.rr.com (Postfix, from userid 1000) id 5D1BA901A00; Thu, 7 Mar 2002 10:57:21 -0500 (EST) Date: Thu, 7 Mar 2002 10:57:21 -0500 From: mpd To: Barry Byrne Cc: questions@freebsd.org Subject: Re: grep.... recursive searching Message-ID: <20020307105721.A46199@rochester.rr.com> References: <20020307091002.A45751@rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from barry.byrne@wbtsystems.com on Thu, Mar 07, 2002 at 02:21:25PM +0000 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 On Thu, Mar 07, 2002 at 02:21:25PM +0000, Barry Byrne wrote: > Mike: > > I think what you wish to to is use find to located certain files recursively > and then grep these files for a specific pattern. > > If so, try something like: > > find /START/OF/PATH -name "FINDPATTERN" -exec grep "GREPPATTERN" {} \; I know about this, but it's too much typing. I'm looking for functionality more like rgrep that comes with RH. Has anyone tried this on FreeBSD? This is the one thing I miss from using Linux. It's written in perl, but I can't find a copy anywhere right now. Will keep looking. > > Cheers, > > Barry > mike > > > > > 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 > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- ___________________________________________________________ "POKEY MAY I BUY A FIVE 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