Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created January 12, 2011 22:43
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 cwarden/44637c15808766872745 to your computer and use it in GitHub Desktop.
Save cwarden/44637c15808766872745 to your computer and use it in GitHub Desktop.
Test redirects using curl
cat urls.txt | xargs -i sh -c "echo -n '{},'; curl -L -s -o /dev/null -w '%{url_effective},%{http_code}\n' '{}'" | tee redirect-test-results.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment