title: Is it possible to print only stdout to the screen while writing stdout and stderr to a logfile?
body: <p>I know that it is possible to redirect both to a specific file:</p>
  
  <pre class="lang-sh prettyprint-override"><code>./command 1&gt; out.log 2&gt; err.log
  </code></pre>
  
  <p>or</p>
  
  <pre class="lang-sh prettyprint-override"><code>./command 1&gt;test.log 2&gt;&amp;1
  </code></pre>
  
  <p>to write both to a file. But I don't know a way to write both to the same file (preserving the output order) while printing just one of both. <code>tee</code> isn't very helpful because it prints both file descriptors.</p>