title: How to use mod operator in bash?
body: <p>I'm trying a line like this:</p>
  
  <pre><code>for i in {1..600}; do wget http://example.com/search/link $i % 5; done;
  </code></pre>
  
  <p>What I'm trying to get as output is:</p>
  
  <pre><code>wget http://example.com/search/link0
  wget http://example.com/search/link1
  wget http://example.com/search/link2
  wget http://example.com/search/link3
  wget http://example.com/search/link4
  wget http://example.com/search/link0
  </code></pre>
  
  <p>But what I'm actually getting is just:</p>
  
  <pre><code>    wget http://example.com/search/link
  </code></pre>