awk对列求和

awk 'BEGIN{total=0}{total+=$1}END{print total}' 文件名

posted on 2013-11-18 15:46  语辰  阅读(282)  评论(0编辑  收藏  举报