Link to home
Start Free TrialLog in
Avatar of 1 LinePerl
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
ASKER CERTIFIED SOLUTION
Avatar of FishMonger
FishMonger
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 1 LinePerl
1 LinePerl

ASKER

TY
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.