如何使用Linux中的WGET下载多个文件,并使用每个下载文件的自定义名称保存它们
如何使用WGET下载多个文件。假设我有一个包含多个URL的URL.TXT,我想使用每个文件的自定义文件名自动保存它们。如何做?
我尝试使用此格式“ WGET -C url1 -o filename1”下载1乘1,现在我想尝试下载批次下载。
How to download multiple files using wget. Lets say i have a urls.txt containing several urls and i want to save them automatically with a custom filename for each file. How to do this?
I tried downloading 1 by 1 with this format "wget -c url1 -O filename1" successfully and now i want to try do batch download.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以看一下 /a>命令,您需要准备每个
wget
呼叫的参数的文件,以便假设它被命名为download.txt
,然后使用它
如下做
You might take look at
xargs
command, you would need to prepare file with arguments for eachwget
call, lets say it is nameddownload.txt
andand then use it as follows
which is equivalent to doing
添加输入文件和一个循环:
Add the input file and a loop: