parses ip addresses from stdin or a provided file and takes into consideration blacklisted and whitelisted CIDRs.
Blacklisting is done after whitelisting and thus takes precedence.
-k
keep duplicates in output-b <file>
Blacklist ips within newline-delimited File containins CIDRs or IPs-w <file>
Whitelist ips within newline-delimited File containins CIDRs or IPs-i
include ips within provided comma-separated CIDRs -x
eXclude ips within provided comma-separated CIDRs run cargo install ip-parser
to install and ips
to run the program.
``` ips 1.0.0
USAGE: ips [FLAGS] [OPTIONS] [file-name]
FLAGS: -h, --help Prints help information -k, --keep-duplicates non-unique output, keep any duplicates -V, --version Prints version information
OPTIONS:
-b, --blacklist-file
ARGS:
$ cat testfile | ips
1.1.1.1
127.0.0.1
2.2.2.2
$ cat testfile | ips -x 2.2.2.2
1.1.1.1
127.0.0.1
$ cat testfile | ips -i 2.2.2.2
2.2.2.2
$ ips -i 2.2.2.2 testfile
2.2.2.2
$ ips -i 2.2.2.2,1.1.1.1 testfile
1.1.1.1
2.2.2.2
$