Awk

From DWIKI

Documentation

FAQ

Sum list of numbers

| awk '{sum+=$1} END {print sum}'