从1.txt中提取出含有2.txt中内容的行 2018-12-27 本文已影响0人 njmujjc gawk 'ARGIND==1{a[$1]=$1} ARGIND==2{if(a[$1]!="") print $0}' 2.txt 1.txt > result.txt