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: Bruce Korb
Subject: Re: grep feature request: print all lines
Date: Sat, 23 Oct 2004 11:05:52 -0700

Egmont Koblinger wrote:
> 
> 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.

The Open Group has given permission to use text from their man
page.  It is clearer on this subject:

  http://www.opengroup.org/onlinepubs/007908799/xcu/grep.html




reply via email to

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