[SunHELP] Re: grep.... recursive searching

Will Yardley william+sun at hq.newdream.net
Thu Mar 7 04:06:29 CST 2002


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).

-- 
Will Yardley
william @ newdream . net



More information about the SunHELP mailing list