I have the following input file:
a 1 o p
b 2 o p p
c 3 o p p p
in the last line there is a double space between the last p's
,
and columns have different spacing
I have used the solution from: Using awk to print all columns from the nth to the last.
awk '{for(i=2;i<=NF;i++){printf "%s ", $i}; printf "\n"}'
and it works fine, untill it reaches double-space in the last column and removes one space.
How can I avoid that while still using awk?