How to download multiple files with wget?

Published on Aug. 22, 2023, 12:17 p.m.

To download multiple files with wget, you can provide a text file containing a list of URLs to be downloaded using the -i option. Each URL should be specified on a separate line. For example, let’s say we have a file named list.txt that contains a list of URLs:

https://www.example.com/file1.zip
https://www.example.com/file2.zip
https://www.example.com/file3.zip

To download all of the files in the list, you can use the following command:

wget -i list.txt

This command will start downloading the files listed in list.txt and save them to the current directory. You can use the -P option to specify a different download directory if needed.

Tags: