You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An efficient bash script for calculating the number of hosts in IP subnets and ranges. Easily determine the host count for single CIDR notations or process a file containing a mix of IPs, subnets, and ranges.
A simple bash script to calculate the number of hosts in a given subnet, or range. This script accepts both single CIDR and a file containg CIDR, range or Just IP.
Usage
Calculate hosts for a single subnet
./hostcalc.sh <CIDR>
Calculate IP from file which can cantain IP, Sunet, Or Range
./hostcalc.sh <IP file>
About
An efficient bash script for calculating the number of hosts in IP subnets and ranges. Easily determine the host count for single CIDR notations or process a file containing a mix of IPs, subnets, and ranges.