[OS X TeX] webarchive
Martin Costabel
costabel at wanadoo.fr
Sat May 17 19:23:22 CEST 2008
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
More information about the macostex-archives
mailing list