Forked from weaver299/gist:e44185e548196db038afcfba145c11c2
Last active
May 7, 2018 15:49
-
-
Save rjewell/3e1472278c51daf6ab5dc95f93886265 to your computer and use it in GitHub Desktop.
check what a URL redirects to
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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