Skip to content

Instantly share code, notes, and snippets.

@yuroyoro
Created February 21, 2013 09:12
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 yuroyoro/5003402 to your computer and use it in GitHub Desktop.
Save yuroyoro/5003402 to your computer and use it in GitHub Desktop.
curlコマンドで、HTTP のステータスコードをすばやくしらべる!
curl -s http://www.ietf.org/rfc/rfc2616.txt | grep -E '^\s+\|?\s+"[0-9]{3}"\s+;' | sed -r 's/^\s+\|?\s+"([0-9]+)"\s+;.+:(.*)$/\1 : \2/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment