I have a text file with a bunch of IP Addresses as follows:
200.48.123.45
143.150.41.12
170.12.39.232
and so on.
I need to program a batch file that read every single line of the text file and calculate if that IP address is inside this ip range (IP Range) or cidr block (CIDR Block) it must be one of these two, the easiest to program.
If the IP Address is NOT inside the range or cird block, it must be write on an output text file.
I haven't seen one batch file like that, thanks.
Your best bet is to use a perl script with the NetAddr::IP module and the contains
function.