https://github.com/lumakernel/ipv4mask_to_num.bash
Convert IPv4 CIDR mask to prefix number
https://github.com/lumakernel/ipv4mask_to_num.bash
Last synced: 12 months ago
JSON representation
Convert IPv4 CIDR mask to prefix number
- Host: GitHub
- URL: https://github.com/lumakernel/ipv4mask_to_num.bash
- Owner: LumaKernel
- License: unlicense
- Created: 2021-05-25T14:06:47.000Z (about 5 years ago)
- Default Branch: mainline
- Last Pushed: 2021-05-25T14:08:00.000Z (about 5 years ago)
- Last Synced: 2025-07-07T17:55:24.374Z (12 months ago)
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipv4mask_to_num.bash
[](https://github.com/luma-planet/terraform-provider-sshclient/actions/workflows/test.yml)
## Usage
```
source /path/to/ipv4mask_to_num.sh
echo $(ipv4mask_to_num 255.255.240.0) # 20
```
## License
[UNLICENSE](./LICENSE)