I'm trying to figure out how to move a block of text from one file to a specific point in another. I have a large amount of files that looks like this:
H -9.92247800 1.33807800 -0.69208300
S -9.74392800 0.01073000 -0.55448800
C -7.98603700 0.04294200 -0.19355700
C -7.45325900 -1.23715800 0.02112600
...
And I want to move the columns of numbers to files that looks like this before:
...
0 1 0 1 0 1
H 0 H
S 0 H
C 0 H
C 0 H
...
And so should like this after:
...
0 1 0 1 0 1
H 0 -9.92247800 1.33807800 -0.69208300 H
S 0 -9.74392800 0.01073000 -0.55448800 H
C 0 -7.98603700 0.04294200 -0.19355700 H
C 0 -7.45325900 -1.23715800 0.02112600 H
...
Is there anyway to automate this for a large number of files? I'm aware that I can select a block, copy it, and paste it into the other file manually, but I have too many files for this to be feasible.
The number blocks always begins and ends at the same location (line and column) and the place I want to paste to always is at the same line and column.