Skip to content

Instantly share code, notes, and snippets.

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 rjewell/3e1472278c51daf6ab5dc95f93886265 to your computer and use it in GitHub Desktop.
Save rjewell/3e1472278c51daf6ab5dc95f93886265 to your computer and use it in GitHub Desktop.
check what a URL redirects to
check_redirect () {
echo "- Redirect chain for $1 - ";
wget $1 2>&1 | grep Location:
echo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment