title: Bash print stderr only, not stdout
body: <p>I want to lint a file, and print the stderr (error message), but do not print the stdout (saying the file is OK).</p>
  
  <pre><code>php -l "foo/bar.php"
  </code></pre>
  
  <ul>
  <li>If there are no errors, it prints a "No errors" message to stdout.</li>
  <li>If there are errors, it prints a detailed message to stderr. I want only this one.</li>
  </ul>
  
  <p>I figure it will be some magic with <code>&gt;&amp;</code>, but I never understood how those work.</p>
  
  <p>What I want is to consume all stdout, keep stderr.</p>
  
  <p>(Sorry if this is dulicate, but I haven't found any question exactly about this)</p>