How to read files and sum values bash code example Example: bash add all numbers awk '{ sum += $1 } END { print sum }' file