Last active
August 29, 2015 14:06
-
-
Save jacres/b3cb99c3a9ba9e4ba83f to your computer and use it in GitHub Desktop.
This file contains 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=0; i < $3; i++)); do | |
HEX_COLOR=`od -vAn -N3 -tx1 /dev/urandom | tr -cd 0123456789abcdef` | |
echo "color: $HEX_COLOR" | |
curl -L -o "$1x$2_$i.$4" "http://placehold.it/$1x$2/$HEX_COLOR.$4" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment