@wufapexef

Как скачать файлы указаные в текстовом документе wget/curl?

Есть текстовый файл вида

http://example.com/movie1.mpg
http://example.com/movie2.mpg
http://example.com/movie3.mpg


Как одной командой начать скачивание всех указанных файлов?
Что лучше использовать wget или curl?
ОС Убунту 16.04
  • Вопрос задан
  • 111 просмотров
Решения вопроса 2
SagePtr
@SagePtr
Еда - это святое
wget -i твой_файл_со_списком.txt
Ответ написан
@pfg21
ex-турист
прочитать man штоле ??

$ man wget
********
-i file
--input-file=file
Read URLs from a local or external file. If - is specified as file, URLs are read from the standard input. (Use ./- to read from a file literally named -.)

If this function is used, no URLs need be present on the command line. If there are URLs both on the command line and in an input file, those on the command lines will be the first ones to be retrieved. If --force-html is not specified, then file should consist of a series of URLs, one per line.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы