wget http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest -O cnip.txt
find /i "apnic|CN|ipv4" cnip.txt>>chinaip2.txt
for /f "skip=2 tokens=1-5 delims=|" %%a in (chinaip2.txt) do whois -h whois.apnic.net -i %%d | find /i "mnt-by" >>a.txt && echo %%d %%e >>a.txt && echo ----------------------------------------->>a.txt
得到的结果
mnt-by: MAINT-CNNIC-AP
mnt-by: MAINT-CNNIC-AP
mnt-by: MAINT-CNNIC-AP
mnt-by: MAINT-CNNIC-AP
58.14.0.0 131072
-----------------------------------------
mnt-by: APNIC-HM
mnt-by: MAINT-CNCGROUP-RR
mnt-by: MAINT-CNCGROUP
58.16.0.0 65536
-----------------------------------------
mnt-by: APNIC-HM
mnt-by: MAINT-CNCGROUP-RR
mnt-by: MAINT-CNCGROUP-RR
mnt-by: MAINT-CNCGROUP
58.17.0.0 32768
省略 。。。。。。