SHELL从APNIC获取IP地址
#!/bin/bashwget http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest
FILE=delegated-apnic-latest
grep "apnic|CN|ipv4" $FILE | awk -F "|" '{print $4,$5}' > IP.txt
AB=`cat IP.txt | wc -l`
pow=32
i=1
while(($i> IP.SH
let i++
done
rm -rf IP.txt $FILE
页:
[1]