I want a bash command that I can pipe into that will sum a column of numbers. I just want a quick one liner that will do something essentially like this:

cat FileWithColumnOfNumbers.txt | sum

10 Answers
10

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *