I figure he either ment Delineated or Delimited (in this case delimited by a SPACE) And personally, I would have done it: list='1 5 7 22' for value in ${list} do echo ${value} done Then, at some time in the future, you can replace the setting of 'list' with anything from a call to a function of some type or even a call to a database. -----Original Message----- From: Carmen Rusu [mailto:carmen.rusu@xxxxxxxxxxxxxxx] Sent: Tuesday, April 05, 2005 2:34 PM To: mgogala@xxxxxxxxxxxxxxxxxxxx; Ethan.Post@xxxxxx Cc: oracle-l@xxxxxxxxxxxxx Subject: Re: Very Simply KSH Question Excuse me, what does "deliminated" list mean? Couldnt find "deliminated" in my Webster... Thanks, Carmen Rusu Odba >>> Mladen Gogala <mgogala@xxxxxxxxxxxxxxxxxxxx> 4/5/2005 2:27:10 PM >>> Post, Ethan wrote: >This works on my Solaris server, when I run on my web host (not sure >what OS) it will not set X and Y. Both are using ksh. Is this related >to ksh versions or is this a stupid way to set multiple variables from a >deliminated list? > > echo 2 4 | read X Y > echo $X >2 > echo $Y >4 >-- >//www.freelists.org/webpage/oracle-l > > It is a stupid way to set multiple variables from a deliminated list. Smart way would be this: $ let A=2; $ let B=3 $ let C=$A*$B $ echo $C 6 $ echo $SHELL /bin/ksh $ -- Mladen Gogala Oracle DBA Ext. 121 -- //www.freelists.org/webpage/oracle-l -- //www.freelists.org/webpage/oracle-l -- //www.freelists.org/webpage/oracle-l