awk '{a[$1]?a[$1]=a[$1]+$2:a[$1]=$2}END{for(x in a){print x,a[x]}}' 1.txt

我要回帖

 

随机推荐