Last active
August 29, 2015 14:26
-
-
Save fulippo/cce6ee726e68ce9b7b77 to your computer and use it in GitHub Desktop.
Check status code of URL taken from text file
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/bash | |
while read LINE; do | |
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE" | |
echo " $LINE" | |
done < url-list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment