Sorry the Shebang is wrong on the bash script it should be:#!/usr/bin/env bashOn Tue, Jan 27, 2015 at 1:45 PM, James Dugger <james.dugger@gmail.com> wrote:Todds answer is perfect as long as the filenames to be downloaded are explicitly named. However the image files that you are downloading are named based on a query string and are hashed with filename that is longer than the allowable character limit of a filename in Linux. So the wget will fail. You need use the -O option which allows you to rename the file as you download it but it can only be used for a single file not recursively.you could do this for a single file case:$ wget -O new_image_name.jpg http://url-to-image-nameNormally the -r and -A options will add a numerical suffix if it encounters another file with the same name, however option -O turns suffixing off, so it is only good for one file at a time. You could write a small bash script to handle it:#!usr/env/bin/ bashwhile read -r imagedooutput=`echo $image | cut -c 1-50`wget "${image}" -O "${output}"done < ./images.txtOn Tue, Jan 27, 2015 at 1:05 PM, Michael Havens <bmike1@gmail.com> wrote:Todd.... I am so glad I asked the question. I wondered if there was a way to do the 'A' option. Now I know! So cool.:-)~MIKE~(-:On Tue, Jan 27, 2015 at 12:26 PM, Todd Millecam <tyggna@gmail.com> wrote:wget -r -A jpg -P /tmp/ http://sites.google.com/site/thebookofgimp/home/chapter-2-photograph-retouching/
will put them all in /tmp/sites.google.com/bookofgim/home/chapter-2-photograph-retouchingOn Tue, Jan 27, 2015 at 12:12 PM, Michael Havens <bmike1@gmail.com> wrote:---------------------------------------------------H0w can I us wget to retrieve the photos here. I tried:but it didn't download the pictures. It downloaded a bunch of web pages.:-)~MIKE~(-:
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss--Todd Millecam
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss--James--James
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss