Skip to content

Instantly share code, notes, and snippets.

@drakmail
Created August 20, 2012 09:20
Show Gist options
  • Save drakmail/3402586 to your computer and use it in GitHub Desktop.
Save drakmail/3402586 to your computer and use it in GitHub Desktop.
#!/bin/sh
curl $1 2>/dev/null | grep $2 > /dev/null
if [ "$?" -ne "0" ]; then
echo "fail"
else
echo "ok"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment