On Tue, Aug 20, 2002 at 10:07:09PM +0100, Richard Kimber wrote:
> I don't seem to be able to get the grep I have ( 2.4.2-3) to search
> recursively. The man page gives a -r option for this, and this is what
> I've always used with my previous distro. Is there a bug? Or am I using
> it incorrectly?
>
> grep -r text *.htm
The * gets expanded before grep get at it. Try
find . -name '*.htm' | xargs grep text
or, if the find returns to many matches,
find . -name \*.htm -exec grep text \{\} \;
Hope that does it,
--
Vinai
Registered Linux User #280755, Debian GNU/Linux http://counter.li.org/
Secure eMail with gnupg http://www.gnupg.org/
Attachment:
pgpseZjqfVKjL.pgp
Description: PGP signature