How to Sum a column in AWK?

You could sum the column 57 of your file, and print it using

awk '{split($0,a,","); sum += a[57]} END {print sum}' 

Leave a Comment