How to print all the columns after a particular number using awk?
awk, shell
Solution
awk '{ s = ""; for (i = 9; i <= NF; i++) s = s $i " "; print s }'
Problem
On shell, I pipe to awk when I need a particular column. This prints column 9, for example: ``` ... | awk '{print $9}' ``` How can I tell awk to print all the columns including and after column 9, not just column 9?