title: Assign value to element of an array inside a loop in bash
body: <p>I would like to modify the value to an element of an array and I don't know the syntax to do it</p>
  
  <pre><code>for i in `seq 0 8`;
  do
      if [ ${config[$i]} = "value1" ]
          then config[$i] = "value2"    #&lt;- This line
      fi
  done
  </code></pre>