Skip to content
This repository

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…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 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.