Skip to content

Instantly share code, notes, and snippets.

@0xcaff
Created Mar 23, 2015
Embed
What would you like to do?
This script is used to grab images from a slide share containing the Modern Biology textbook.
#!/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