Sunday, April 20, 2014

How to print all the columns after a particular number using awk?


awk '{ s = ""; for (i = 9; i <= NF; i++) s = s $i " "; print s }'
cut -d' ' -f 9- ./infile

http://stackoverflow.com/questions/5081916/how-to-print-all-the-columns-after-a-particular-number-using-awk

No comments: