Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'for' loop question
- X-seq: zsh-users 1342
- From: Thomas Koehler <thomas@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: 'for' loop question
- Date: Wed, 25 Feb 1998 22:22:49 +0100
- In-reply-to: <199802252044.PAA13635@xxxxxxxxxxxxxxx>; from Timothy J Luoma on Wed, Feb 25, 1998 at 03:44:14PM -0500
- References: <199802252044.PAA13635@xxxxxxxxxxxxxxx>
On Wed, Feb 25, 1998 at 03:44:14PM -0500, Timothy J Luoma wrote:
>
> Can I do this in zsh? It doesn't seem to be working:
>
> SERVERS="rs.internic.net whois.arin.net whois.ripe.net
> whois.apnic.net whois.nic.mil"
>
> for i in $SERVERS
> do
Try this:
SERVERS=(rs.internic.net whois.arin.net whois.ripe.net whois.apnic.net whois.nic.mil)
for i in $SERVERS ; do echo $i ; done
CU,
Thomas
--
Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx
<>< WWW: http://home.pages.de/~jeanluc/
IRC: jeanluc
LCARS --- Linux for Computers on All Real Starships
Messages sorted by:
Reverse Date,
Date,
Thread,
Author