I am trying to rearrange stacked columns.
Below is an excerpt of my data file:
You can see there are two data columns stacked vertically.
ITERATION Time Ground
Distance
seconds feet
--------- ------------ ------------
0 21.000 985.665
1 21.150 1002.091
2 21.300 1018.369
3 21.450 1034.500
4 21.600 1050.486
5 21.750 1066.325
6 21.900 1082.019
Spoiler
Deflection
seconds degrees
--------- ------------ ------------
0 21.000 70.800
1 21.150 70.800
2 21.300 70.800
3 21.450 70.800
4 21.600 70.800
5 21.750 70.800
6 21.900 70.800
I am using gnuplot to plot the data and require the data columns to be beside each other laterally, not vertically. How can this be achieved with awk or sed?