awk to remove first 3 lines and print remaining $1, $2 fields
How would I use awk to remove the first few lines while printing the fields on the remaining lines?
e.g.
Input data.in:
Header: This line is useless
Header2: This line is useless
Header3: This line is useless
John 24 32
Jane 21 33
Desired Output:
John 32
Jane 33
Current Script:
cat data.in | awk '{ if (FNR > 3) printf("%s %s\n", $1, $3) }
[NEVERMIND, got it.]
Last edited by phyx; 01-10-2007 at 04:04 PM.
|