例如两个文件名 abc.txt 和 def.txt 具有以下数据
abc.txt
apple
carrot
定义.txt
fruit
Vegetable
所以我想要像下面这样的o/p:
apple fruit
carrot Vegetable
答案1
paste -d' ' abc.txt def.txt > output.txt
另外,相关问题:
https://stackoverflow.com/questions/3806874/how-to-merge-two-files-line-by-line-in-bash