title: BASH: how to perform arithmetic on numbers in a pipe
body: <p>I am getting a stream of numbers in a pipe, and would like to perform some operations before passing them on to the next section, but I'm a little lost about how I would go about it without breaking the pipe.</p>
  
  <p>for example</p>
  
  <pre><code>&gt; echo "1 2 3 4 5" | some command | cat 
  1 4 9 16 25
  &gt;
  </code></pre>
  
  <p>Would you have any ideas on how to make something like this work? The actual operation I want to perform is simply adding one to every number.</p>