Hello, I need a vbscript that will parse through a text file where every new line is either an ip address or ip range (ex 10.10.10.10 or 11.11.11.11-13)
I need a script that will parse through the text file and find the ip ranges. When it finds an IP range it will expand it (ex 11.11.11.11-13 = 11.11.11.11 11.11.11.11.12 11.11.11.13 but with returns instead of blank spaces) once it expands that IP range into single ip addresses, it should delete the range and pipe it into a new file. I need to expand and remove the ip ranges so i can audit all the ip addresses.
current txt file
8.8.8.8
8.8.8.9
8.8.8.11-13
9.8.9.9
9.8.9.10-11
this is what i would like it to look like vbscript output txt file
8.8.8.8
8.8.8.9
8.8.8.11
8.8.8.12
8.8.8.13
9.8.9.9
9.8.9.10
9.8.9.11
I need a script that will parse through the text file and find the ip ranges. When it finds an IP range it will expand it (ex 11.11.11.11-13 = 11.11.11.11 11.11.11.11.12 11.11.11.13 but with returns instead of blank spaces) once it expands that IP range into single ip addresses, it should delete the range and pipe it into a new file. I need to expand and remove the ip ranges so i can audit all the ip addresses.
current txt file
8.8.8.8
8.8.8.9
8.8.8.11-13
9.8.9.9
9.8.9.10-11
this is what i would like it to look like vbscript output txt file
8.8.8.8
8.8.8.9
8.8.8.11
8.8.8.12
8.8.8.13
9.8.9.9
9.8.9.10
9.8.9.11