How can I quickly sum all numbers in a file? October 10, 2022 by Tarik You can use awk: awk '{ sum += $1 } END { print sum }' file