-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Hannah
committed
Mar 17, 2015
1 parent
1b6e48b
commit 64040ba
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ipgrep |
This file contains 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
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]> |