title: OS X Terminal: tr: how to add multiple carriage returns?
body: <p>I have a file that is formatted like this:</p>
  
  <pre><code>&gt; ABC
  1
  2
  &gt; DEF
  3
  4
  </code></pre>
  
  <p>I would like to use tr to replace each <code>&gt;</code> with 4 carriage returns, so it looks like:</p>
  
  <pre><code> ABC
  1
  2
  
  
  
  
   DEF
  3
  4
  </code></pre>
  
  <p>I tried the following in the Terminal: <code>cat input | tr "&gt;" "\n\n\n\n" &gt; output</code>
  However, this only adds one carriage return between the two blocks of data, like this:</p>
  
  <pre><code> ABC
  1
  2
  
   DEF
  3
  4
  </code></pre>
  
  <p>How can I get it to recognize the multiple carriage returns? Thanks!</p>