To sum all the numbers in a file Posted byadmin November 9, 2012 Leave a comment on To sum all the numbers in a file cat x.tmp | awk '{sum += $0} END {print sum}'