title: Iterate over two arrays with bash
body: <p>Let's say I have two arrays <em>of the same length</em> :</p>
  
  <pre><code>array1=('a' 'b' 'c')
  array2=('1' '2' '3')
  </code></pre>
  
  <p>I would like to iterate over these two arrays in order to apply a command. My current (not sexy) solution is the following :</p>
  
  <pre><code>for iter in `seq 0 $((${#array1[@]}-1))`
  do  
      echo "First parameter : ${array1[$iter]} -- second parameter : ${array2[$iter]}"
  done
  </code></pre>
  
  <p>Is there anything better ?</p>