title: How to sum up multi-line of output of numbers?
body: <p>I have a multi-line of output from some shell scripts, one integer number per line. Like:</p>
  
  <pre><code>12
  11
  55
  337
  11
  34
  </code></pre>
  
  <p>Problem is, how could I sum up these numbers with a shell command? I tried <code>sum</code>, but it doesn't do what is intended:</p>
  
  <pre><code>&lt;some_shell_scripts&gt; |sum
  36373     2 
  </code></pre>
  
  <p>Any simple solution in ksh or bash?</p>