Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Very Simply KSH Question

RE: Very Simply KSH Question

From: Knight, Jon <jknight_at_concordefs.com>
Date: Tue, 5 Apr 2005 14:40:21 -0500
Message-ID: <17ECCBDCF27C544583F2CAD928F953260221FBB2@memex1.corp.cefs.int>


deliminated - someone or something that WAS eliminated, but no longer is. ;-)

Thanks,
Jon Knight

 -----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Carmen Rusu

Sent:	Tuesday, April 05, 2005 2:34 PM
To:	mgogala_at_allegientsystems.com; Ethan.Post_at_ps.net
Cc:	oracle-l_at_freelists.org
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_at_allegientsystems.com> 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
>--
>http://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


--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Apr 05 2005 - 15:45:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US