https://github.com/milesrack/cidr
A simple bash script to get the CIDR notation of a subnet mask.
https://github.com/milesrack/cidr
cidr cidr-notation cidr-range cidr-ranges cidr-subnet cli-tool cli-utilities cli-utility networking networking-tools
Last synced: about 1 year ago
JSON representation
A simple bash script to get the CIDR notation of a subnet mask.
- Host: GitHub
- URL: https://github.com/milesrack/cidr
- Owner: milesrack
- Created: 2022-12-12T05:13:59.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T05:14:15.000Z (about 3 years ago)
- Last Synced: 2025-01-05T09:14:51.763Z (about 1 year ago)
- Topics: cidr, cidr-notation, cidr-range, cidr-ranges, cidr-subnet, cli-tool, cli-utilities, cli-utility, networking, networking-tools
- Language: Shell
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
user@arch:~$ cidr 255.255.255.0
/24
user@arch:~$ cidr 255.255.192.0
/18
user@arch:~$ cidr 255.255.252.0
/22
```