Prabhath Kota
PySpark, BigData, SQL, Hive, AWS, Python, Unix/Linux, Shortcuts, Examples, Scripts, Perl
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment