hacker85 当前离线
五级士官
TOP
find 当前离线
少将
fileall="wellhead_all.txt" for file in wellhead_*.txt do if [ "$file" != "$fileall" ] then awk 'NR==FNR{a[$1]=$1}NR>FNR{if($1==a[$1])print}' $file $fileall >${file/.txt/}.log fi done复制代码