Skip to content

Instantly share code, notes, and snippets.

@surajsau
Created September 10, 2018 11:09
Show Gist options
  • Save surajsau/e54f82f9184ffb5e6389f917c5cedc26 to your computer and use it in GitHub Desktop.
Save surajsau/e54f82f9184ffb5e6389f917c5cedc26 to your computer and use it in GitHub Desktop.
Serial Image Downloader
#!/bin/bash
i=0
limit=<MAX_LIMIT>
while [ $i -lt $limit ]
do
if [ $i -lt 10 ]
then
curl -O <LESS_THAN_10_FORMATTED_URL>
else
curl -O <GREATER_THAN_10_FORMATTED_URL>
fi
i=`expr $i + 1`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment