title: Using output of previous commands in bash
body: <p>In Mathematica, it is possible to reuse the output of the previous command by using %.</p>
  
  <p>Is something similar possible for bash (or some other shell)?</p>
  
  <p>For example, I run a make which gives warnings, but I want to find all warnings.
  So, I type </p>
  
  <pre><code>make | grep "warning"
  </code></pre>
  
  <p>but I'm not able to see the output of the make then.</p>
  
  <p>I would like to type something like this instead:</p>
  
  <pre><code>make
  % | grep "warning"
  </code></pre>