UNIX/コマンド/テキスト処理/join


A 80
B 30
A 70
B 100
% join math.txt english.txt
A 80 70
B 30 100
A,80
B,30
% join -t',' math.txt english.txt
A txt 20
B jpg 80
A jpg 30
B txt 40
% join file1 file2
A txt 20 jpg 30
B jpg 80 txt 40
% join -j 2 file1 file2
% sort +1 file1 > file11
% sort +1 file2 > file22
% join -j 2 file11 file22
jpg B 80 A 30
txt A 20 B 40


xrea