I am trying to move text side-by-side after a gap in the text.
My example is
684 0.00000
685 0.00000
686 0.99490
684 0.00000
685 0.00000
686 0.76000
I would like the text to be as follows
684 0.00000 684 0.00000
685 0.00000 685 0.00000
686 0.99490 686 0.76000
I have tried but this hasn't produced the desired output.
awk 'NR%1{printf "%s ",$0;next;}'1 file.txt
Any help or assistance would be greatly appreciated.
Dan