Article 5MJ20 wget question, how to combine -i foo.txt and -O name.jpg

wget question, how to combine -i foo.txt and -O name.jpg

by
lleb
from LinuxQuestions.org on (#5MJ20)
I currently use a text file labeled just grab.txt to grab a series of images from the schools site.

The images are just 1.jpg, 2.jpg, etc.... so that makes them easy to grab.

After I run a simple script to rename them to class.date.####.jpg

If there is only a small number of images to grab I'll do them by hand with:

wget URL -O class.date.####.jpg

many days there are between 10 - 1000 images to grab, thus the -i option with the grab.txt file.

Is there a way to combine the -i with -O in one step without having to edit and run the renaming script?

Thank you.latest?d=yIl2AUoC8zA latest?i=BE7IdwLILBQ:n-WuLDCogIM:F7zBnMy latest?i=BE7IdwLILBQ:n-WuLDCogIM:V_sGLiP latest?d=qj6IDK7rITs latest?i=BE7IdwLILBQ:n-WuLDCogIM:gIN9vFwBE7IdwLILBQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments