title: Evaluate expression inside bash for loop
body: <p>If I do this, I get the result as expected.</p>
  
  <pre><code>for i in {125..129}; do echo $i; done
  125
  126
  127
  128
  129
  </code></pre>
  
  <p>But when I do this? I get something weired.</p>
  
  <pre><code>for i in {$((1+(25-1)*500))..$((25*500))}; do echo $i; done
  
  {12001..12500}
  </code></pre>
  
  <p>I wish to pass a variable inside the loop variables like <code>$((1+($j-1)*500))</code></p>