title: bash: creating an xls/csv
body: <p>Found these answers but from these it is not clear to me how to <strong>simply</strong> create excel sheets.</p>
  
  <p>These two marked as answer do create a sheet out of a given txt BUT the data in the two txt columns get inserted in a single column in the table created:
  <a href="https://stackoverflow.com/questions/45668255/how-to-convert-a-text-file-into-excel-in-bash-or-perl">How to convert a text file into excel in bash or perl</a></p>
  
  <p>As if the tab-delimiter didnt work.</p>
  
  <p>This answer does the same to me:
  <a href="https://stackoverflow.com/questions/44772883/how-to-write-text-file-data-into-same-cell-of-excel-using-bash">How to write text file data into same cell of excel using bash</a></p>
  
  <p>This one is too complicated for an amateur:
  <a href="https://stackoverflow.com/questions/43524670/paste-output-into-a-csv-file-in-bash-with-paste-command">Paste output into a CSV file in bash with paste command</a></p>
  
  <p>I just am not able to decipher and simplify the stuff.</p>
  
  <p>This does the same - columns end up merged in the first one:</p>
  
  <pre><code>#!/bin/bash
  
  
  while read value; do
  
     echo "$value"
  
  
  done &lt;tabulka.txt &gt; test.csv
  </code></pre>
  
  <p>May I ask for a simple way to put data to an xls/csv? Im not really a bash expert, just an engineer forced to work with it. Thanks!</p>
  
  <p>EDIT:
  sample textfile as requested (tab as delimiter):</p>
  
  <pre><code>header1 header2
  
  aaaa    1.0
  
  bbbb    1.1
  
  cccc    1.3
  </code></pre>
  
  <p>result:</p>
  
  <p><a href="https://i.stack.imgur.com/okuuS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/okuuS.png" alt="enter image description here"></a></p>