File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ This script reads a file containing IPv4 CIDR notations or individual IP address
1414- Excludes network and broadcast addresses from the host count
1515- Ignores empty lines and lines starting with ` # `
1616- Warns about invalid lines with a descriptive message
17+ - Identifies duplicates (-D to list hosts appearing in multiple files)
18+ - Calculates RFC1918 private vs public host counts (-r)
1719
1820## Usage
1921
@@ -24,4 +26,14 @@ Python 3.6+
2426### Command
2527
2628``` bash
27- python HostCount.py path/to/cidrs.txt
29+ python HostCount.py -d path/to/cidrs.txt
30+ ```
31+
32+ ###
33+ Optional flags:
34+ - ` -D ` , ` --duplicates `
35+ When processing a directory, list hosts that appear in more than one file and which files they appear in.
36+
37+ - ` -r ` , ` --rfc1918 `
38+ Show how many hosts are in RFC1918 private address space vs how many are not (prints per-file and totals).
39+
You can’t perform that action at this time.
0 commit comments