How to print third column to last column?

Amit G picture Amit G · Oct 21, 2009 · Viewed 247.7k times · Source

I'm trying to remove the first two columns (of which I'm not interested in) from a DbgView log file. I can't seem to find an example that prints from column 3 onwards until the end of the line. Note that each line has variable number of columns.

Answer

Jonathan Feinberg picture Jonathan Feinberg · Oct 21, 2009
awk '{for(i=3;i<=NF;++i)print $i}'