Created
August 25, 2011 02:27
-
-
Save mndoci/1169826 to your computer and use it in GitHub Desktop.
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/bash | |
# from http://www.hilarymason.com/blog/bash-get-http-response-codes-for-a-list-of-urls/ | |
while read line | |
do | |
echo $(curl --write-out %{http_code} --silent --output /dev/null $line) | |
done <$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment