1 LinePerl
asked on
Parse a list of subnets and return the first useable ip for each (simply increment the last octet by 1)
I have a text file which list several small subnets (all are either /30 or /29):
192.168.0.0/30
192.168.0.4/30
10.0.0.8/29
I need to parse the file and return a list of the first usable IP for each subnet
192.168.0.1
192.168.0.5
10.0.0.9
192.168.0.0/30
192.168.0.4/30
10.0.0.8/29
I need to parse the file and return a list of the first usable IP for each subnet
192.168.0.1
192.168.0.5
10.0.0.9
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you don't want or are not allowed to use the module, then post your code and ask a specific question on the part that is giving you trouble.
ASKER