title: Parsing text file to make a CSV file using sed
body: <p>I have a multi-gigabyte text file that looks like this:</p>
  
  <pre><code>&gt;seq1
  AAAUAAAUAAAUAAA
  ............... (  0.00)
  &gt;seq2
  AAAUAAAUAAAUAAU
  ............... (  0.00)
  &gt;seq3
  AAAUAAAUAAAUAAC
  ............... (  0.00)
  &gt;seq4
  AAAUAAAUAAAUAAG
  ............... (  0.00)
  &gt;seq5
  AAAUAAAUAAAUAUA
  ............... (  0.00)
  </code></pre>
  
  <p>And I need to get it into a format that I can dump into a MySQL table. My thought is to make it a CSV file that looks like:</p>
  
  <pre><code>&gt;seq1,AAAUAAAUAAAUAAA,...............,(  0.00)
  &gt;seq2,AAAUAAAUAAAUAAU,...............,(  0.00)
  </code></pre>
  
  <p>But I'm not at all certain how to write the regex to make sed do its thing.</p>