G
gooofoofs
Im currently using the script below to find lines with valid IP addresses.
Now whats the best way to exclude any IP address in the 10.0.0.0 range.
#!/usr/bin/perl -w
open(FILE, "logfile.log");
foreach $string (<FILE>){
if($string =~ /(\d+)(\.\d+){3}/){
print $string }
}
close(FILE);
Now whats the best way to exclude any IP address in the 10.0.0.0 range.
#!/usr/bin/perl -w
open(FILE, "logfile.log");
foreach $string (<FILE>){
if($string =~ /(\d+)(\.\d+){3}/){
print $string }
}
close(FILE);