文件格式我发图片了中间是“|”隔开的
awk '{sum[$1]+=$2}END{for(c in sum){print c,sum[c] >> /var/sum.txt }}' 把结果重定向 会报错,哪里写错了?求大神指教
路径加上双引号