Date: Thu, 7 Mar 2002 14:21:25 -0000 From: "Barry Byrne" <barry.byrne@wbtsystems.com> To: "mpd" <mpd6334@cs.rit.edu>, <questions@FreeBSD.ORG> Subject: RE: grep.... recursive searching Message-ID: <NCBBIAMNAKDKFJIIGNPKMEMCHHAA.barry.byrne@wbtsystems.com> In-Reply-To: <20020307091002.A45751@rochester.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" {} \; Cheers, Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKMEMCHHAA.barry.byrne>