- 论坛徽章:
- 145
|
回复 1# hbczjzc
$ awk -F'[= ]+' '{cmd="ipcalc "$3;cmd|getline;ip=$2;cmd|getline;print "route inside",ip,$2,"192.168.1.254 1";close(cmd)}' IP.TXT
route inside 1.24.0.0 255.248.0.0 192.168.1.254 1
route inside 1.56.0.0 255.248.0.0 192.168.1.254 1
route inside 1.93.0.0 255.255.0.0 192.168.1.254 1
route inside 1.188.0.0 255.252.0.0 192.168.1.254 1
route inside 14.204.0.0 255.254.0.0 192.168.1.254 1
route inside 27.0.128.0 255.255.255.0 192.168.1.254 1
route inside 27.8.0.0 255.248.0.0 192.168.1.254 1
route inside 27.36.0.0 255.252.0.0 192.168.1.254 1
route inside 27.40.0.0 255.248.0.0 192.168.1.254 1
route inside 27.50.128.0 255.255.128.0 192.168.1.254 1
|
|