whether I use colNb or $colNb, it doesn't work
export colNb=$(awk '{print NF}' file1 | sort -nu | tail -n 1)
awk '{for(i=3 ; i<colNb; i++) {printf("%s\t", $i)} print ""}' file1 | less
with $colNb, I get
awk: illegal field $(), name "colNb"
input record number 1, file1
source line number 1
and with colNb, I just get empty fields instead of the fields in file1