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: Mickey Ferguson
Subject: RE: problem in grep 2.4.2?
Date: Tue, 22 Jan 2002 16:11:33 -0800

OK, I'm a little confused.  Isn't 2.4.2 the latest version of GNU grep?  I
just got it from the GNU web site, or at least I think I did.  I don't see
any --include option there.  And I know nothing about xargs, and the only
find I have is the version that came with Windows NT (which is the platform
on which I'm working).

If 2.4.2 isn't the latest, can you please point me to where I can find a
native Win32 compiled version of it?  Thanks!

-----Original Message-----
From: Paul Eggert [mailto:address@hidden
Sent: Tuesday, January 22, 2002 4:08 PM
To: address@hidden
Cc: address@hidden
Subject: Re: problem in grep 2.4.2?


> 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]