Skip to content

Commit

Permalink
Meta
Browse files Browse the repository at this point in the history
  • Loading branch information
James Hannah committed Mar 17, 2015
1 parent 1b6e48b commit 64040ba
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ipgrep
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# ipgrep

A simple tool for grepping for IPs (or networks) in a list of IP addresses.

## Usage

Simply as follows

[user@server] $ echo "1.2.3.4" >> sources
[user@server] $ echo "2.3.4.5" >> sources
[user@server] $ echo "2001:db0::face" >> sources
[user@server] $
[user@server] $ ipgrep 2.3.4.0/24 < sources
2.3.4.5
[user@server] $ echo "2000::/3" > spec
[user@server] $
[user@server] $ ipgrep -patterns ./spec < sources
2001:db0::face

## Missing Features

* No support for `-v` to invert matches.

## Blame

By James Hannah <[email protected]>

0 comments on commit 64040ba

Please sign in to comment.