Created
June 15, 2016 17:41
-
-
Save indriApollo/83e6cc313b0f0fcb340f8f11d60a0b9c to your computer and use it in GitHub Desktop.
Bash test
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/sh | |
| mkdir ~/scripting | |
| cd ~/scripting | |
| i=1 | |
| out=0 | |
| while [ $out -eq "0" ] | |
| do | |
| j=$i | |
| if [ $i -lt "10" ] | |
| then | |
| j="0$i" | |
| fi | |
| wget "https://labo-pbei.no-ip.org:8000/scripting/$j.jpg" --no-check-certificate | |
| out=$? | |
| i=$((i+1)) | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment