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

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

Re: grep feature request: print all lines


From: Egmont Koblinger
Subject: Re: grep feature request: print all lines
Date: Sat, 23 Oct 2004 20:02:48 +0200
User-agent: Mutt/1.5.6+20040722i

On Sat, Oct 23, 2004 at 04:51:10PM +0200, Stepan Kasal wrote:

> Use
>       grep --color=auto -e pattern -e '' file

Ohh, this one is new to me... Actually it has arised on various forums how
to grep for one of more strings, and only more complicated solutions came up
such as  egrep '(this|that)' file

Looking at the man page, it is not trivial to me that multiple patterns can
be given. I suggest clarifying this. E.g. (in pseudo-patch):

- [...] for lines containing a match to the given PATTERN.
+ [...] for lines containing a match to at least one of the given PATTERNs.

and maybe a full new sentence telling about the possibility of specifying
more patterns could not hurt IMHO.

Anyway, knowing about this possibility now, I fully accept you arguments why
you think my original idea is not worth implementing.


Thanks,

Egmont




reply via email to

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