grep is always recursive

Hal Burgiss hal at burgiss.net
Wed Jan 28 02:56:12 UTC 2009


On Tue, Jan 27, 2009 at 09:49:22PM -0400, Derek Broughton wrote:
> 
> I don't consider it a bug at all, difficult as it is.  Who in their right 
> minds creates file names with anything but a leading alpha character?  Sorry, 
> but that's just asking for trouble.

GNU: Gnot for Use on directory structures containing files with leading
non-alpha characters.
 
> That's just standard man page construction.  How else do you simply show 
> that options and other arguments can be interspersed?

Well, not by clearly stating that the order on the command line is
signficant. Or is it significant in some cases, but not in others? 
I can't see how ...

      grep [OPTIONS] PATTERN [FILE...]
      grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...]

says anything other than OPTIONS come before PATTERN and FILEs come
after. There clearly are ways to impart variable syntax.

-- 
Hal





More information about the ubuntu-users mailing list