bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem in grep 2.4.2?


From: Paul Eggert
Subject: Re: problem in grep 2.4.2?
Date: Tue, 22 Jan 2002 16:08:06 -0800 (PST)

> From: Mickey Ferguson <address@hidden>
> Date: Tue, 22 Jan 2002 15:58:09 -0800
> 
> Why is it that file specifications only work in the current
> directory, while recursion searches only work with no file specifications?

Because the shell handles file specifications like that; they're
expanded before grep sees them.

Recent versions of GNU grep should have an --include feature that
should do pretty much what you want.  If you want something fancier,
you can use 'find' with 'xargs' and 'grep'; it will definitely do what
you want.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]