An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# ipv4mask_to_num.bash

[![](https://img.shields.io/github/workflow/status/luma-planet/terraform-provider-sshclient/test?label=test&style=flat-square)](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)