perl -pi -e 'BEGIN{ local @ARGV = ("IP_addr.txt"); %IP = map {$_ => 1; +} <>; } $_ = "#" . $_ if /((\d{1,3}\.){3}(\d{1,3}))/ and exists $IP{$1} +;'
In reply to Re: one liner with separate input file?
by Laurent_R
in thread one liner with separate input file?
by MrGibbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |