Re: Arrays doubts in KSH

Re: Arrays doubts in KSH

am 24.01.2008 08:13:03 von Guru

On Dec 29 2007, 8:34 pm, "Bobby.Higgins"
wrote:
> set -A x 11 22 33 44 44
> echo ${x[3]}
>
> wrote in message
>
> news:b7c2b738-4755-41f1-84e3-e46bcb67942c@b40g2000prf.google groups.com...
>
> > Hi:
>
> > How could I make this work in KSH ?
>
> >>>x="11 22 33 44 55"
> >>>echo x[3]
> > 44
>
> >>>y=((x[2] + x[4]))
> >>> echo $y
>
> > 88
>
> > Thank You Masters !

Hi check out this...
=> x=(11 22 33 44 55)
=> echo ${x[3]}
44
=> y=`expr ${x[3]} + ${x[1]}`;echo $y
66

Hope it will work fine with you...

Guru S
"The secret of our success is found in our daily agenda and action"