title: Assign variables inside for loops
body: <p>I am trying a small code which is </p>
  
  <pre><code>for(( i =0;i&lt;2;i++ )); do p$i=\"pra$i\"; done
  </code></pre>
  
  <p>expected output is: 
  Variable must be assigned </p>
  
  <pre><code>p0="pra0"
  p1="pra1"
  </code></pre>
  
  <p>But bash is taking that as command and am getting output as </p>
  
  <pre><code>p0="pra0": command not found
  p1="pra1": command not found
  </code></pre>
  
  <p>Thanks</p>