1
4679kun 2016-05-08 19:14:11 +08:00 via Android
把 set 去掉 echo on 去掉 然后去查查 bash 的 for 循环
|
2
kingddc314 2016-05-08 19:20:05 +08:00 via Android
很简单,看完基础语法就会, for 用 read , curl 一样用,还是自己动手吧
|
3
kendetrics 2016-05-08 19:29:54 +08:00 1
测速的?
while read line do curl -s -o nul -m 10 -Y 204800 -y 5 --url ${line}${/123.pkg} -H "Host: abc.com" -w "# %{remote_ip} download speed is %{speed_download}B/s\n" done < "list.txt" 没验证,自己试试对不对 |