[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #22100] Enhancement request: "grep foo | grep bar" in one proce
Re: [bug #22100] Enhancement request: "grep foo | grep bar" in one process (i.e. line-selector and pattern selector)
Fri, 25 Jan 2008 06:56:50 +0000
Thunderbird 220.127.116.11 (X11/20070712)
Andreas Schwab wrote:
Richard Neill <address@hidden> writes:
Thanks for your email. Sadly, my contrived example is oversimplified, such
that the sub-section is in the nth field, where n is known in advance -
but that isn't necessarily true.
Not a problem, awk can handle that quite well.
That sounds like a good reason for me to learn awk properly. :-)
But seriously, I still think this would be worth adding to grep if
possible. My thoughts:
- awk is relatively arcane, whereas lots of people know grep.
- grep does almost everything needed, so why have yet another tool
- awk isn't always available.
Also, it is related to bug 15280 https://savannah.gnu.org/bugs/?15280