Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Work with the response codes of URLs provided via STDIN
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
httpgrep

README.md

httpgrep

Helps to filter and work with the response codes given by URLs.

Examples

Annotation - add the response code to the output with the URL

$ echo -e "http://google.com\nhttp://www.reddit.com" | ruby httpgrep -a
301; http://google.com
200; http://www.reddit.com

Exclude provided response codes from output

$ echo -e "http://google.com\nhttp://www.reddit.com" | ruby httpgrep --exclude 301
http://www.reddit.com
Something went wrong with that request. Please try again.