Created
March 20, 2018 22:31
-
-
Save itst/321c5e2c23480f85210dfd47b9248aee to your computer and use it in GitHub Desktop.
Downloader for consecutively named files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in `seq 1 80`; do | |
r=$(( $RANDOM % 2 ))$(( $RANDOM % 10 ))$(( $RANDOM % 10 ))r=$(( $RANDOM % 10 )) | |
curl http://www.domain.com/$i.jpg -o $(printf '%04d' $i).jpg | |
sleep $(jot -r 1 0.5 2.4) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment