awk '{if(NR>1)a[$1]+=$2}END{for(i in a)printf "%s\t %d\n",i,a[i]}' querylog* > total.txt

posted on 2013-09-12 20:59  andy071001  阅读(854)  评论(0编辑  收藏  举报