Skip to content
/ cidr Public

A simple bash script to get the CIDR notation of a subnet mask.

Notifications You must be signed in to change notification settings

milesrack/cidr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

cidr

A simple bash script to get the CIDR notation of a subnet mask.

Installation

git clone https://github.com/milesrack/cidr.git
cd cidr
chmod +x install.sh
./install.sh

After running this close your terminal and reopen it.

Usage

user@arch:~$ cidr 255.255.255.0
/24
user@arch:~$ cidr 255.255.192.0
/18
user@arch:~$ cidr 255.255.252.0
/22