How to print all the columns after a particular number using awk?
When you want to do a range of fields, awk
doesn't really have a straight forward way to do this. I would recommend cut
instead:
cut -d' ' -f 9- ./infile
Edit
Added space field delimiter due to default being a tab. Thanks to Glenn for pointing this out
awk '{ s = ""; for (i = 9; i <= NF; i++) s = s $i " "; print s }'