Skip to content

Instantly share code, notes, and snippets.

@heyalexej
Created February 19, 2014 12:28
Show Gist options
  • Save heyalexej/9090961 to your computer and use it in GitHub Desktop.
Save heyalexej/9090961 to your computer and use it in GitHub Desktop.
Check status codes for a list of URLs
while read LINE; do curl -o /dev/null --head --silent --write-out "$LINE\t %{http_code}\n" "$LINE"; done < inputfile 2>&1 | tee outputfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment