First page Back Continue Last page Overview Graphics
Example 3-2 : awk command
Ignoring header lines
Most of the time, our data files have text header lines. We count the number of header lines and use switch NR to signal the awk command about the lines. File brojen1.dat is the original version of file brojen.dat which is downloaded from IRSC website at (irsc.ut.ac.ir). We extract as before the columns 5 and 6 but ignore the header lines,
awk 'NR>18 {print $5,$6}' brojen1.txt