Created
March 23, 2015 01:29
-
-
Save 0xcaff/612406c708fade9dff9d to your computer and use it in GitHub Desktop.
This script is used to grab images from a slide share containing the Modern Biology textbook.
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 {1..1154} | |
do | |
wget "https://image.slidesharecdn.com/studentedition-130307085310-phpapp01/95/biology-text-book-$i-638.jpg" -O "$i.jpg" & | |
while (( $(jobs | wc -l) >= 10 )); do | |
sleep 0.1 | |
jobs > /dev/null | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment