Skip to content

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.

License

Notifications You must be signed in to change notification settings

mrrobot1o1/hostcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

hostcalc

image

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages