Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2002 10:57:21 -0500
From:      mpd <mpd6334@cs.rit.edu>
To:        Barry Byrne <barry.byrne@wbtsystems.com>
Cc:        questions@freebsd.org
Subject:   Re: grep.... recursive searching
Message-ID:  <20020307105721.A46199@rochester.rr.com>
In-Reply-To: <NCBBIAMNAKDKFJIIGNPKMEMCHHAA.barry.byrne@wbtsystems.com>; from barry.byrne@wbtsystems.com on Thu, Mar 07, 2002 at 02:21:25PM %2B0000
References:  <20020307091002.A45751@rochester.rr.com> <NCBBIAMNAKDKFJIIGNPKMEMCHHAA.barry.byrne@wbtsystems.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020307105721.A46199>