- #1
ChrisVer
Gold Member
- 3,378
- 465
Suppose I have two .txt files:
Is it possible to merge the collumns in a single txt file like:
?
Either with some c++ or python code, or with bash or vim.
Python:
>>text1.txt
X Y Z
x1 y1 z1
x2 y2 z2
...
xN yN zN
>>text2.txt
W R
w1 r1
w2 r2
...
wN rN
Is it possible to merge the collumns in a single txt file like:
Python:
>>merged.txt
X Y Z W R
x1 y1 z1 w1 r1
x2 y2 z2 w2 r2
...
xN yN zN wN rN
Either with some c++ or python code, or with bash or vim.