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.
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.