title: Bash script loop through an array of numbers with delimiters comma + space
body: <p>I wanna loop through the array and print out each element in a bash script:</p>
  
  <pre><code>array=(10, 0.2, 0.03,)
  for ele in ${array[@]}
  do
  echo "$ele blah" 
  done
  </code></pre>
  
  <p>However, it spits out:</p>
  
  <pre><code>10, blah
   blah
  0.2, blah
   blah
  0.03 blah
  </code></pre>
  
  <p>Even if I added </p>
  
  <pre><code>IFS=","
  </code></pre>
  
  <p>The result is :</p>
  
  <pre><code>10 blah
   blah
  0.2 blah
   blah
  0.03 blah
  </code></pre>
  
  <p>How can I get:</p>
  
  <pre><code>10 blah
  0.2 blah
  0.03 blah
  </code></pre>
  
  <p>After this, I would like to align each line like:</p>
  
  <pre><code>10.00      blah
  0.200      blah
  0.030      blah
  </code></pre>
  
  <blockquote>
    <p>Updated:</p>
    
    <p>With the 1st and 2nd column separated by 6 spaces</p>
  </blockquote>
  
  <p>Is there any easy way to do this? Thanks.</p>