title: Redirecting standard error to file and leaving standard output to screen when launching makefile
body: <p>I am aware that for redirecting standard error and output to file I have to do:</p>
  
  <pre><code>make &gt; &amp; ! output.txt
  </code></pre>
  
  <p>Note I use <code>!</code> to overwrite the file. But How can I redirect standard error to file and leave standard output to screen? Or even better having both error and output on file but also output on screen, so I can see how my compiling is progressing?
  I tried:</p>
  
  <pre><code>make 2&gt;! output.txt 
  </code></pre>
  
  <p>but it gives me an error.</p>