Skip to content

Instantly share code, notes, and snippets.

@mndoci
Created August 25, 2011 02:27
Show Gist options
  • Save mndoci/1169826 to your computer and use it in GitHub Desktop.
Save mndoci/1169826 to your computer and use it in GitHub Desktop.
#!/bin/bash
# from http://www.hilarymason.com/blog/bash-get-http-response-codes-for-a-list-of-urls/
while read line
do
echo $(curl --write-out %{http_code} --silent --output /dev/null $line)
done <$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment