I want my Unix file output, which has each value output on a new line, to be converted into grouped rows as shown below.
Say my output file in Unix looks like this:
Kind of ugly, but doesn't require a shell script:
cat outputfile | tr "\n" " " | sed -e 's/\W*\(\w*\) \(\w*\) \(\w*\) \(\w*\)\W*/\1 \2 \3 \4\n/g'