Wednesday, April 27, 2011

Suming a list of numbers

cat numbers.txt | awk -F: '{total+=$1} END{print total}'

No comments:

Post a Comment