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