存在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 "\n" file1.txt file2.txt > file3.txt
2023-01-05 13:58:02
存在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 "\n" file1.txt file2.txt > file3.txt