How to print all columns using AWK

Solution 1:

This will print all:

awk '{print $0}'    

And to make this long enough: this will print columns 3 to 6:

awk -v f=3 -v t=6 '{for(i=f;i<=t;i++) printf("%s%s",$i,(i==t)?"\n":OFS)}'

OFS is a built-in variable (there are 8: FS, OFS, RS, ORS, NR, NF, FILENAME, FNR) and is the output field seperator (more here).