Created
November 26, 2013 04:07
-
-
Save julianvargasalvarez/7653321 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/sh | |
status () { | |
echo "$(curl -Is -X GET $1 | head -n 1 | cut -d' ' -f2) $2" | |
} | |
status https://www.google.com.co/ google | |
status https://github.com/ github | |
status http://things.ubidots.com/api/v1.6/ ubidots_api_1.6 | |
status http://things.ubidots.com/api/v1.5/ ubidots_api_1.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment