EGOPOLY

Topics include: programming, Apple, Unix, gadgets, large-scale web sites and other nerdy stuff.

How to summarize a file of numbers

2010-06-10 13:18:21

I can never remember how to do this with bc % cat file-with-numbers-on-each-line | xargs echo | sed "s/ / + /g" | bc