@echo off
cls
color 06
set SERVERLIST=list.txt
set HOST=gs2.ww.prod.dl.playstation.net
set URL=/123.pkg
for /F %%i in (%SERVERLIST%) do (
.\core\curl -s -o nul -m 10 -Y 204800 -y 5 --url http://%%i%URL% -H "Host: %HOST%" -w "# %%{remote_ip} download speed is %%{speed_download}B/s\n"
)
echo ☆ 测试完毕 ☆
pause
color
echo on
本人shell菜鸟,请问如何将上述.bat执行文件改成UNIX可执行的.sh脚本呢?
PS:list.txt是外部引用的ip list