#!/bin/sh # This works for smallish sums, but outputs in scientific notation for large # sums. There's likely a loss of precision as well. awk 'BEGIN { total=0 } { total=total+$1 } END { print total }'