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