Skip to content

Convert a list of CIDR subnets into a list of IP addresses

Notifications You must be signed in to change notification settings

tanis2000/cidr-to-iplist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert a list of CIDR subnets into a list of IP addresses

This is a simple CLI tool to convert a list of network subnets in CIDR format into a list of IP addresses.

The only input is the filename containing the list of subnets separated by linefeeds.

An example of a list of subnets:

172.16.0.0/27
13.69.104.0/26

Here's how to run it:

cidr-to-iplist ./iplist.txt

The application will print the list of IP addresses to the standard output. If you need to save that in a file, just redirect it to the filename like this:

cidr-to-iplist ./iplist.txt > ips.txt

About

Convert a list of CIDR subnets into a list of IP addresses

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages