linux对文件某列求和

对文件某列求和:

-F,用,号分隔,求第3行的和

awk -F,  '{sum += $3};END {print sum}' test

 

posted @ 2017-02-17 15:21  安大叔  阅读(11116)  评论(0编辑  收藏  举报