对文件某列求和: -F,用,号分隔,求第3行的和 awk -F, '{sum += $3};END {print sum}' test 转载于:https://www.cnblogs.com/andashu/p/6410028.html