存在file1.txt
1 2
3 4
5 6
file2.txt
a b
c d
e f
现希望生成file3.txt
1 2
a b
3 4
c d
5 6
e f
则可以用到如下命令:
paste -d " " file1.txt file2.txt > file3.txt
存在file1.txt
1 2
3 4
5 6
file2.txt
a b
c d
e f
现希望生成file3.txt
1 2
a b
3 4
c d
5 6
e f
则可以用到如下命令:
paste -d " " file1.txt file2.txt > file3.txt