I\'m trying a line like this:
for i in {1..600}; do wget http://example.com/search/link $i % 5; done;
What I\'m trying to get as output is:
You must put your mathematical expressions inside $(( )).
One-liner:
for i in {1..600}; do wget http://example.com/search/link$(($i % 5)); done;
Multiple lines:
for i in {1..600}; do wget http://example.com/search/link$(($i % 5)) done