Skip to content

Instantly share code, notes, and snippets.

@Bonno
Created February 5, 2015 14:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bonno/5c1b5a4dabfc6f304ad2 to your computer and use it in GitHub Desktop.
Save Bonno/5c1b5a4dabfc6f304ad2 to your computer and use it in GitHub Desktop.
Check list of domains for their http status codes
#!/bin/bash
while read LINE; do
curl -o /dev/null --silent --head --write-out '%{http_code}' "$LINE"
echo " $LINE"
done < url-list.txt
google.nl
example.com
asfjnadfka.ka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment