awk '{print $1,$2,3}' ORS=" / " data echo awk 'BEGIN {ORS=" : "} {print $1,$2,3}' data echo
one 1 foo two 2 bar three 3 baz
Index