创建一个traceroute.sh
代码如下:
#方法一: cat $1|while read IP do traceroute -m 10 -n $IP >> data.txt done #方法2: for IP in `cat $1` do traceroute -m 10 -n $IP >> data.txt fi done
运行sh traceroute.sh ip.csv
记得后面最近一个ip列表文件~
创建一个traceroute.sh
代码如下:
#方法一: cat $1|while read IP do traceroute -m 10 -n $IP >> data.txt done #方法2: for IP in `cat $1` do traceroute -m 10 -n $IP >> data.txt fi done
运行sh traceroute.sh ip.csv
记得后面最近一个ip列表文件~