chaosranger
Technical User
Hi
I am a awk newbie and i need your help.
I have following data:
02 A2 14334 2155 15.0 NW 38476 5804
34242 3424 14.0 SW 34434 3434
I need to fields $1 from 1.line and $4 from 2.line to compare and to print the $3 from 2.line
awk '$1 == 01 && $4 == "SW" { print $3}' data
(this don't works)
How can i do this?
THX
I am a awk newbie and i need your help.
I have following data:
02 A2 14334 2155 15.0 NW 38476 5804
34242 3424 14.0 SW 34434 3434
I need to fields $1 from 1.line and $4 from 2.line to compare and to print the $3 from 2.line
awk '$1 == 01 && $4 == "SW" { print $3}' data
(this don't works)
How can i do this?
THX