Skip to content

Instantly share code, notes, and snippets.

@sshongru
Created June 7, 2014 16:58
Show Gist options
  • Save sshongru/c9722d06d74712f0d1e1 to your computer and use it in GitHub Desktop.
Save sshongru/c9722d06d74712f0d1e1 to your computer and use it in GitHub Desktop.
Save 30 images from the imageGenerator
#!/bin/sh
IMAGE_STRING="http://localhost/git/imageGenerator.php?w=200&h=200"
OUTPUT_EXTENSION="png"
INDEX=0
NUM_IMAGES=30
while [ "${INDEX}" != "${NUM_IMAGES}" ]
do
curl "${IMAGE_STRING}&t=${INDEX}" > "./${INDEX}.${OUTPUT_EXTENSION}"
INDEX=`expr $INDEX + 1`
done
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment