Created
February 3, 2017 18:50
-
-
Save maxrothman/fd4fa762167a87e8f6bb576d26c0bc3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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