Skip to content

Instantly share code, notes, and snippets.

@cpliakas
Created January 25, 2012 20:24
Show Gist options
  • Save cpliakas/1678514 to your computer and use it in GitHub Desktop.
Save cpliakas/1678514 to your computer and use it in GitHub Desktop.
Taking screenshots from a list of files
#!/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