xiaochuan 发表于 2018-8-24 07:53:27

SHELL从APNIC获取IP地址

#!/bin/bash  
wget 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]
查看完整版本: SHELL从APNIC获取IP地址