Created
January 25, 2012 20:24
-
-
Save cpliakas/1678514 to your computer and use it in GitHub Desktop.
Taking screenshots from a list of files
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 | |
if [ -z "$1" ]; then | |
echo "Filename required." | |
exit 1 | |
fi | |
while read LINE; do | |
URL=$(echo "$LINE" | awk '{print $1'}) | |
FILENAME=$(echo "$LINE" | awk '{print $2'}) | |
echo -n "Capturing $URL ... " | |
screenshot.sh $URL $FILENAME | |
echo "done." | |
done < "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment