how to move a header to the last column, using awk or sed input file look like this:
Line 1.000N
x y z
23.88 44.66 56.6
23.81 41.66 53.6
Line 81.000N
x y z
13.88 34.66 56.6
13.81 41.66 43.6
I would like the output to be in the following format:
23.88 44.66 56.6 1.000N
23.81 41.66 53.6 1.000N
13.88 34.66 56.6 81.000N
13.81 41.66 43.6 81.000N