Nov 25, 2012

How to print first two columns of a file - AWK



1) It will print first line alone

>>awk 'NR==1' test.txt #1st line from the top
>>awk 'NR==7' test.txt #7th line from the top

2) How to print first line/lines of the file

>>head -8 test.txt

No comments:

Post a Comment