Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 'for' loop question



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