Created
September 16, 2015 18:33
-
-
Save firewizard/735ff621e64134ec5635 to your computer and use it in GitHub Desktop.
get response codes for a list of urls
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 | |
while read LINE; | |
do curl -L -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"; | |
echo " $LINE"; | |
done < $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment