Skip to content
mrrobot1o1Public

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

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages