Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can download images using wget if I download from a website. But I have several links and I have saved them in a text file.

For example:

wget -r -A.jpg -np www.fragrancenet.com

There are so many pictures on this website. I have saved the links for the particular pictures I want:

www.fragrancenet.com/images1

www.fragrancenet.com/images2

www.fragrancenet.com/images3

The links are saved in a text file named images.txt in my computer.
How can I download the links in the images.txt text file using wget?

share|improve this question

1 Answer 1

Use this command:

wget -i images.txt

or

wget --input-file=images.txt

It will save the images in your current directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.