title: BASH: loop-reading a list creating a dynamic array
body: <p>I have a list formatted as below. If I replace the list by, say, "aaa bbb ccc", everything works fine. Anyone an idea?</p>
  
  <pre><code>list=$(echo -e "1.1 1.2 mgmt")
  
  n=0
  for i in $list; do
     let "array1_$i[$n]=$(date "+%N")"
     ((++n))
  done
  
  n=0
  for i in $list; do
     var=array1_$i[$n]
     echo ${!var}
     ((++n))
  done
  </code></pre>
  
  <p>thanks in advance for any ideas...</p>