Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用来自循环的变量作为 wget 的参数?
#!/bin/bash for i in {1..100} do for j in {1..1000} do wget -q [http://www.sitename.com/i/j.jpg] done done
这个想法是从数据严重损坏的某个站点下载所有图像文件(返回图像或 404)
使用$i和$j使用变量:
$i
$j
wget -q "http://www.sitename.com/$i/$j.jpg"