Skip to content

Instantly share code, notes, and snippets.

@indriApollo
Created June 15, 2016 17:41
Show Gist options
  • Select an option

  • Save indriApollo/83e6cc313b0f0fcb340f8f11d60a0b9c to your computer and use it in GitHub Desktop.

Select an option

Save indriApollo/83e6cc313b0f0fcb340f8f11d60a0b9c to your computer and use it in GitHub Desktop.
Bash test
#!/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