title: How do you read a csv file into a two dimensional array in BASH?
body: <p>How do you read a csv file into a two dimensional array in BASH?  The script needs to be dynamic enough where it can take csv files with variable number of rows and columns.</p>
  
  <p>For example, if I have a csv file that looks like</p>
  
  <pre><code>AVERAGE     STDEV     MAX
  17          18        19
  </code></pre>
  
  <p>or</p>
  
  <pre><code>AVERAGE     STDEV     MAX     MIN
  17          18        19      1
  </code></pre>