4 ms·You could do: echo -e "1\n2\n3\n4" | paste -sd+ | bc kind of cheating though! :-)by phaemon 13y agoYou could do: echo -e "1\n2\n3\n4" | paste -sd+ | bc kind of cheating though! :-)