1

#iplist_file
BEGIN { print "ip list" > "ip1"
print "**********************" > "ip1"
}
{printf("%s/n",$1) >"ip1"}
$awk -f iplist_file access_log
#sed | sort -unique 抽取access_log中的ip
$wc -l ip1
$w3m http://www.apnic.net/apnic-bin/whois.pl?ip1 >ip2
$awk "inetnum mnt_by" >ip2

你可能感兴趣的:(1)