Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: pretty easy thing but too hard for me! (random array element)
- X-seq: zsh-users 11702
- From: Clint Adams <clint@xxxxxxx>
- To: fREW <frioux@xxxxxxxxx>
- Subject: Re: pretty easy thing but too hard for me! (random array element)
- Date: Fri, 3 Aug 2007 00:02:57 -0400
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <fb3648c60708021325l4b41d60cnb489aa33d72a0501@xxxxxxxxxxxxxx>
- Mail-followup-to: fREW <frioux@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <31611186004384@xxxxxxxxxxxxxxxxxxx> <fb3648c60708011447o3100794esded1e427ce8dd32d@xxxxxxxxxxxxxx> <20070802015226.GC32551@princo> <fb3648c60708021325l4b41d60cnb489aa33d72a0501@xxxxxxxxxxxxxx>
On Thu, Aug 02, 2007 at 02:25:22PM -0600, fREW wrote:
> If you want complete awesomeness (sorry, didn't realize it was
> originally off-list) you at least need all of the files:
>
> #!/usr/bin/ruby -w
>
> Fromat = "http://www.qwantz.com/comics/comic2-%02i.png"
>
> 2.upto(1072) do |i|
> `wget #{sprintf(Fromat, i)}`
> sleep 1
> end
Why not
#!/bin/zsh
for i in {2..1072}
do
wget $(printf "http://www.quantz.com/comics/comic2-%02i.png" $i)
sleep 1
done
Messages sorted by:
Reverse Date,
Date,
Thread,
Author