Last active
September 22, 2015 11:42
-
-
Save salomvary/e3bf44acfb45d6da5683 to your computer and use it in GitHub Desktop.
curl to print out the value of a given header
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
$ curl -sI 'http://google.com' | tr -d '\r' | awk 'BEGIN {FS=": "}/^Location/{print $2}' | |
http://www.google.de/?gfe_rd=cr&ei=JDsBVrqxNs7j8wfo_5OICw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment