title: IO Redirection - Swapping stdout and stderr
body: <p>Given a shell script:</p>
  
  <pre><code>#!/bin/sh
  
  echo "I'm stdout";
  echo "I'm stderr" &gt;&amp;2;
  </code></pre>
  
  <p>Is there a way to call that script such that only stderr would print out, when the last part of the command is 2>/dev/null, ie </p>
  
  <pre><code>$ &gt; sh myscript.sh SOME_OPTIONS_HERE 2&gt;/dev/null
  I'm stderr
  </code></pre>
  
  <p>Or, alternatively:</p>
  
  <pre><code>$ &gt; sh myscript.sh SOME_OPTIONS_HERE &gt;/dev/null
  I'm stdout
  </code></pre>
  
  <p>It's a question at the end of a set of lecture slides, but after nearly a day working at this, I'm nearly certain it's some sort of typo. Pivoting doesn't work. 2>&amp;- doesn't work. I'm out of ideas!</p>