awk '{ sum += $1 } END { print sum }' file
num1=1232 num2=24 num3=444 sum=$((num1+num2+num3)) echo $sum # prints 1700