Skip to content

Instantly share code, notes, and snippets.

@firewizard
Created September 16, 2015 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firewizard/735ff621e64134ec5635 to your computer and use it in GitHub Desktop.
Save firewizard/735ff621e64134ec5635 to your computer and use it in GitHub Desktop.
get response codes for a list of urls
#!/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