Skip to content

Instantly share code, notes, and snippets.

@maxrothman
Created February 3, 2017 18:50
Show Gist options
  • Save maxrothman/fd4fa762167a87e8f6bb576d26c0bc3d to your computer and use it in GitHub Desktop.
Save maxrothman/fd4fa762167a87e8f6bb576d26c0bc3d to your computer and use it in GitHub Desktop.
#!/bin/bash
urls = (url1.com localhost:2323 'home page.com')
for url in ${urls[*]}; do
curl $url 2>&1 > $url.html
if [$? > 0]; then
echo something bad happened!
rm $url.html
done
for file in $(ls *.html); do
if [grep "I wish I had $20" $file]; then
mv $file approved/
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment