2つのファイルの内部データをリンクする方法

2つのファイルの内部データをリンクする方法

たとえば、abc.txtとdef.txtという2つのファイル名には、次のデータがあります。

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

おすすめ記事