title: Iterate over two arrays simultaneously in bash
body: <p>I have two arrays.</p>
  <pre><code>array=(
    Vietnam
    Germany
    Argentina
  )
  array2=(
    Asia
    Europe
    America
  )
  </code></pre>
  <p>I want to loop over these two arrays simulataneously, i.e. invoke a command on the first elements of the two arrays, then invoke the same command on the second elements, and so on. Pseudocode:</p>
  <pre><code>for c in ${array[*]}
  do
    echo -e &quot; $c is in ......&quot;
  done
  </code></pre>
  <p>How can I do this?</p>