Created
April 7, 2013 01:26
-
-
Save harrisony/5328444 to your computer and use it in GitHub Desktop.
quick down for everyone or just me check
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/sh | |
wget -q -O - "http://downforeveryoneorjustme.com/$1" | grep -E '.*class="domain"' | sed 's/<a href.*>\(.*\)<\/a>/\1/' | sed 's/<\/span>//' |
parsing html with regexes again??
stay classy, @harrisony
@kanerogers ❤️ made my day seeing that comment 😄
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
harrisony@phosphorus ⮀ ~/bin ⮀ sh down.sh google.com
It's just you. http://google.com is up.
harrisony@phosphorus ⮀ ~/bin ⮀ sh down.sh mitie.edu.au
It's not just you! http://mitie.edu.au looks down from here.