Skip to content

Commit e4a5cde

Browse files
committed
README
1 parent e47aaa1 commit e4a5cde

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)