1 2 3 4 5 6 7
NR == 1 { printf "%s %s %s %s %s %s %s %s %s", $1, $2, $3, $4, $5, $6, $7, $8, $9 for (i = NF; i > 9; i--) printf " %s", $i printf "\n" } NR > 1 { print }