[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget
On May 9, 2005, at 1:42 PM, Steven Pritchard wrote:
> On Mon, May 09, 2005 at 01:09:28PM -0500, Steven Pritchard wrote:
>
>> n=1; while [ $n -le 10 ]; do wget http://soso.fake.com/file
>> $n.ext ; done
>>
>
> Oops. Make that
>
> n=1;while [ $n -le 10 ];do wget http://soso.fake.com/file$n.ext;
> ((n++));done
>
> Otherwise, can you say infinite loop? :-)
Personally, I prefer a for loop:
for i in $(seq 1 10) ; do wget http://soso.fake.com/file$n.ext ; done
Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software. Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.
- References:
- wget
- From: bentley rhodes <bntly.rhds@gmail.com>
- Re: wget
- From: Steven Pritchard <steve@silug.org>
- Re: wget
- From: Steven Pritchard <steve@silug.org>