Created
May 3, 2018 10:53
-
-
Save davidcrx/e172e8d163e0095cfb130d3b2a91e9b6 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/bash | |
while read LINE; do | |
curl -o /dev/null --silent --progress-bar --head --write-out '%{http_code} %{time_starttransfer} %{url_effective}\n' "$LINE" | |
done < websites.lst | |
echo -e "\n" | |
echo -e "Code 200: Okei" | |
echo -e "Code 302: Okei (http)" | |
echo -e "Code 404: Not found" | |
echo -e "Code 301: Move permanently" | |
echo -e "Para mas información de códigos de error, porfavor consulte la siguiente URL: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment