Skip to content

Instantly share code, notes, and snippets.

@Nikita029123
Nikita029123 / cidr2ip
Created January 19, 2024 16:48 — forked from deardooley/cidr2ip
cidr to ip range or list. This script prints the ip ranges for a cidr by default. Full ip lists can be obtained with the -a or --all flags.
#!/usr/bin/env bash
# Print usage
function usage {
echo -n "$(basename $0) CIDR...
$(basename $0) [OPTION] CIDR...
This script prints the ip range or full list of ip addresses for one or more CIDR.
Options:
@Nikita029123
Nikita029123 / cidr2ip
Created January 19, 2024 16:48 — forked from deardooley/cidr2ip
cidr to ip range or list. This script prints the ip ranges for a cidr by default. Full ip lists can be obtained with the -a or --all flags.
#!/usr/bin/env bash
# Print usage
function usage {
echo -n "$(basename $0) CIDR...
$(basename $0) [OPTION] CIDR...
This script prints the ip range or full list of ip addresses for one or more CIDR.
Options: