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:
With GNU sed:
tr '\n' ' ' < file | sed -r 's/(\w+ +){4}/&\n/g'