[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)
Thu, 24 Jan 2008 15:19:09 -0600
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:188.8.131.52) Gecko/20071031 Thunderbird/184.108.40.206 Mnenhy/0.7.5.0
Andreas Schwab wrote:
Richard Neill 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.
An example of 'blah | grep -e foo -e bar | grep -E "[0-9]"' (which was
approximately the original point) in awk would be nice...
> A: Yes.
>> Q: Are you sure?
>>> A: Because it reverses the logical flow of conversation.
>>>> Q: Why is top posting annoying in email?