title: BASH: how to create a dynamic array name in a loop
body: <p>here's what I tried:</p>
  
  <pre><code>n=0
  for i in aaa bbb ccc; do
    array${i}[$n]=$(date "+%N")
    ((++n))
  done
  n=0
  for i in aaa bbb ccc; do
    echo ${array${i}[$n]}
    ((++n))
  done
  </code></pre>
  
  <p>any ideas how to make the dynamic array name work?
  thanks a lot!</p>