AWK

Sum all Lines in a file

$ awk '{s+=$1} END {print s}' mydatafile

Source: http://stackoverflow.com/a/450821/4273291

results matching ""

    No results matching ""