[SunHELP] Re: grep.... recursive searching
Wesley A. Wannemacher
wesw at aol.net
Fri Mar 8 12:33:09 CST 2002
On Thu, 7 Mar 2002 02:06:29 -0800, Will Yardley <william+sun at hq.newdream.net>
wrote:> Solaris Neophyte wrote:
> >
> > I know that the grep command has the ability to search a group of
> > files... you can even specify multiple directories... but I want to
> > know if there is an option or some uncomplicated way to recursively
> > search a directory so that I don't need to enter each and every
> > directory within a tree.
>
> eek - sorry - grep -r doesn't work with solaris grep. however you could
> install the gnu grep and alias it to something else (ie ggrep) and use
> ggrep -r (or alias 'rgrep' to '/usr/local/bin/grep -r' (or wherever you
> install the GNU version).
>
In the past, I have just done:
`find . | xargs grep RegEx `
--
:wq
Wesley Wannemacher
Systems Administrator
America Online
Email: wesw at aol.net
Office: 614.538.3264
Pager: 877.236.2892
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
[demime 0.99c.1 removed an attachment of type application/pgp-signature]
More information about the SunHELP
mailing list