Summarizing one column by the uniq names of places in second column in linux

后端 未结 0 942
滥情空心
滥情空心 2020-12-08 00:17

I am trying to summarize column 1 (amount of money spent) by the unique places in column 2. I have been using the code:

awk \'{a[$2]+=$1} END {for (i in a) pr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题