awk script question
Kurt Wall
kwall
Wed Sep 8 15:14:07 PDT 2004
In a 1.9K blaze of typing glory, Shawn Tayler wrote:
>
> ooo Thanks Kurt!
>
> BTW, is there a way to get awk to conditionally grab a field from the next
> line? As an example, each of the lines I am outputing these fields from
> contains the word Unit. I would like to grab one of the field from the
> line immediatly follwing the line used for the fields here. Any
> suggestions?
I'm not sure about fields, but `getline' will grab the next input record,
so it should be easy enough to peel off the field that you want.
Kurt
--
The giraffe you thought you offended last week is willing to be nuzzled
today.
More information about the Linux-users
mailing list