📅  最后修改于: 2022-03-11 14:57:23.908000             🧑  作者: Mango
awk 'NR==FNR{huty[$1]=$2;next}NR>FNR{if($1 in huty){print $0 "\t" huty[$1]} else {print $0 "\t" "None"}}' input1.txt input2.txt > output.txt
cat output.txt
å京 beijing
ä¸æµ· shanghai
å¹¿å· guangzhou
å京 None