title: Send standard out and standard error to different files, but also display them
body: <p>The answers to <a href="https://stackoverflow.com/questions/7901517/how-to-redirect-stderr-and-stdout-to-different-files-in-the-same-line-of-bash">this question</a> show us how to redirect standard output and standard error to two separate files.</p>
  
  <p>But what if I also want to see the output on the console as it is created?</p>
  
  <p>We can use <code>tee</code> to save one of the streams to a file, but then with the other stream, we must either echo it or save it to a file.</p>
  
  <pre><code>$ command 2&gt;error.log | tee output.log
  </code></pre>
  
  <p>How can I use <code>tee</code> on both streams?</p>