title: bash storing a variable and silence the result
body: <p>I want to do something like this in bash:</p>
  
  <pre><code>NUMBER_OF_WHATEVER="$(command | command2 | command3 )" 2&gt;&amp;1 /dev/null
  </code></pre>
  
  <p>So I want to store the output on the variable but also not print it. This clearly doesnt stop the stderr from printing (I can see error msgs from command1 coming out).</p>
  
  <p>Thanks</p>