如何使用 wget 下载一系列文件,如下所示:
http://www.example.com/index.php?file=1
http://www.example.com/index.php?file=2
http://www.example.com/index.php?file=3
...
http://www.example.com/index.php?file=500
Run Code Online (Sandbox Code Playgroud)
And*_*ini 15
wget支持使用单个命令下载多个文件。这意味着您可以像这样利用您的 shell 功能:
wget http://www.example.com/index.php?file={1..500}
Run Code Online (Sandbox Code Playgroud)
如果您的 URL 位于文件中(每行一个 URL)或在标准输入中,您还可以使用wget的-i选项。