title: Replace tab for newline and remove newlines together with SED
body: <p>I have tabs (five) between these words:</p>
  
  <p><code>cat                    dog</code></p>
  
  <p>and I want this output:</p>
  
  <pre>cat
  dog</pre>
  
  <p>I tried this: <code>sed 's/\t/\n/g; /^$/d' pets</code>
  and the output was the same as with <code>sed 's/\t/\n/g' pets</code>:</p>
  
  <pre>cat
  
  
  
  
  dog</pre>
  
  <p>I had to execute sed two times to get what I wanted. Like this <code>sed 's/\t/\n/g' pets&gt;temp</code> after <code>sed '/^$/d' temp</code></p>
  
  <p>Is there a way to get the desired output with one command?</p>