title: How can i split a line and still keep the delimiter in linux?
body: <p>I want to split a line based on a delimiter in linux but would still like to keep the delimiter in the first line.</p>
  
  <p>For example if i try this...</p>
  
  <pre><code>echo "&gt;chrAATCTAGATTTGTGTTGAACAACCCTTGGTAC" | tr '&gt;chr' $'\n'
  </code></pre>
  
  <p>i am getting this output only ....</p>
  
  <pre><code>AATCTAGATTTGTGTTGAACAACCCTTGGTAC
  </code></pre>
  
  <p>but what i want an output like this...</p>
  
  <pre><code>&gt;chr
  AATCTAGATTTGTGTTGAACAACCCTTGGTAC
  </code></pre>
  
  <p>Any ideas of how i can do it in linux</p>