paste
to the rescue. -d
stands for "delimiter" and I set it to "space".
$ paste -d' ' one.txt two.txt
A B H
C D J
E F N
If you want the result to be stored in one.txt
, you can save it in a temporary file and then replace one.txt
with it:
$ paste -d' ' one.txt two.txt > temp && mv temp one.txt
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…