title: Mapping lines to columns in *nix
body: <p>I have a text file that was created when someone pasted from Excel into a text-only email message. There were originally five columns.</p>
  
  <pre><code>Column header 1
  
  Column header 2
  
  ...
  
  Column header 5
  
  Row 1, column 1
  
  Row 1, column 2
  
  etc
  </code></pre>
  
  <p>Some of the data is single-word, some has spaces. What's the best way to get this data into column-formatted text with unix utils?</p>
  
  <p>Edit: I'm looking for the following output:</p>
  
  <pre><code>Column header 1   Column header 2   ...   Column header 5
  Row 1 column 1    Row 1 column 2 ...
  ...
  </code></pre>
  
  <p>I was able to achieve this output by manually converting the data to CSV in vim by adding a comma to the end of each line, then manually joining each set of 5 lines with J. Then I ran the csv through <code>column -ts,</code> to get the desired output. But there's got to be a better way next time this comes up.</p>