converting column to row

tr '\n' ' ' < infile

or

sed -e 'N;N;N;s/\n/ /g' infile