[OS X TeX] webarchive

George Gratzer gratzer at mac.com
Sat May 17 13:47:06 EDT 2008


Thank you all, problem solved. It is a pleasure to belong to this  
group of helpful folks.

Maybe I should learn some Unix?

GG

On 17-May-08, at 12:23 PM, Martin Costabel wrote:

> George Gratzer wrote:
>> I did:
>> mkdir gratzer
>> cd gratzer
>> for N in `jot 31 57`
>> do
>>  curl -O 'http://anziamj.austms.org.au/JAMSA/V52/Part1/Gratzer/ 
>> p[0057-0087].png
>
> Here you are mixing several things:
> - You either run a loop where $N takes values between 57 and 87, and  
> then the file name is represented by p00$N.png,
> - or you use one command line where curl fetches several files at  
> once, and then the file name is represented by p[0057-0087].png (I  
> didn't know curl could do this)
>
> If you do both at the same time, you fetch all files 31 times, which  
> gives the desired result, too, but will take a little longer :-)
>
>> done
>> open *
>> Got:
>> Last login: Sat May 17 11:36:42 on ttys000
>> george-gratzers-mac-pro:~ gratzer$ mkdir gratzer
>> george-gratzers-mac-pro:~ gratzer$ cd gratzer
>> george-gratzers-mac-pro:gratzer gratzer$ for N in `jot 31 57`
>> >  do
>> -bash: syntax error near unexpected token ` do'
>
> You must have copied something else, perhaps no newline before "do"?  
> In your previous try with wget, bash did not complain about "do". It  
> ran the loop and gave you dutifully 31 time "wget: command not found".
>
>
> -- 
> Martin
>
> -------------------------- Helpful Info --------------------------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> List Archive: http://tug.org/pipermail/macostex-archives/
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>




More information about the MacOSX-TeX mailing list