title: Move headers as part of detail with shell
body: <p>I have an input file that I need to convert to be DB friendly. </p>
  
  <p>Original:</p>
  
  <pre><code>H|cust_id|order_no
  D|itemcode|itemdesc
  D|itemcode|itemdesc
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>itemcode|itemdesc|cust_id|order_no
  itemcode|itemdesc|cust_id|order_no
  </code></pre>
  
  <p>I'm reading about <code>sed</code> but can't understand it.</p>