using awk to print columns from a file
By technese - Last updated: Monday, November 14, 2011 - Save & Share - Leave a Comment
1st column
$ awk '{ print $1 }' < file> newfile
2nd column
$ awk '{ print $2 }' < file> newfile
nth column
$ awk '{ print $n }' < file> newfile