|
From: | Richard Neill |
Subject: | Re: [bug #22100] Enhancement request: "grep foo | grep bar" in one process (i.e. line-selector and pattern selector) |
Date: | Thu, 24 Jan 2008 10:24:14 +0000 |
User-agent: | Thunderbird 2.0.0.4 (X11/20070712) |
Andreas Schwab wrote:
Richard Neill <address@hidden> writes:For example, consider a data file: apples: 12 oranges: 15 bananas: 20 How many oranges do I have?awk '/oranges/ { print $2 }' Andreas.
Dear Andreas,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.
Regards, Richard
[Prev in Thread] | Current Thread | [Next in Thread] |