Skip to content

Instantly share code, notes, and snippets.

@commuterjoy
Created April 9, 2014 20:59
Show Gist options
  • Save commuterjoy/10315062 to your computer and use it in GitHub Desktop.
Save commuterjoy/10315062 to your computer and use it in GitHub Desktop.
Generate the response code for a list of URLs (inc. following redirects)
cut -d , -f 2 list-of-urls | xargs -n 1 -I @ echo 'curl -Lsi -w "%{http_code} %{url_effective}\\n" @ -o /dev/null' | /bin/sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment