Last active
August 29, 2015 14:16
-
-
Save johnsockwell/e0b8d6a654342d8dd413 to your computer and use it in GitHub Desktop.
Curls a list of urls and displays the http response code. Great for APIs!
This file contains hidden or 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
| #!/bin/sh | |
| while read URL | |
| do | |
| curl -sL -w "%{http_code} %{url_effective}\\n" -o /dev/null -# $URL | |
| done < "${1:-/dev/stdin}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment