How to `wget` a list of URLs in a text file?

后端 未结 5 1247
余生分开走
余生分开走 2021-01-30 03:46

Let\'s say I have a text file of hundreds of URLs in one location, e.g.

http://url/file_to_download1.gz
http://url/file_to_download2.gz
http://url/file_to_downlo         


        
5条回答
  •  無奈伤痛
    2021-01-30 04:30

    If you also want to preserve the original file name, try with:

    wget --content-disposition --trust-server-names -i list_of_urls.txt
    

提交回复
热议问题