Variables Value (ksh)

Variables Value (ksh)

am 01.01.2008 11:46:34 von shulamitm

Hello!

In ksh script (SUN OS), I need to get the value of variable value.
For example:

aa=bb
and bb=hello

I have only the 'aa' variable, so how can I get the 'hello' strings
(the value of bb) ?


thanks in advance!

Re: Variables Value (ksh)

am 01.01.2008 13:50:47 von Janis Papanagnou

shulamitm wrote:
> Hello!
>
> In ksh script (SUN OS), I need to get the value of variable value.
> For example:
>
> aa=bb
> and bb=hello
>
> I have only the 'aa' variable, so how can I get the 'hello' strings
> (the value of bb) ?

eval echo \$$aa


Janis

>
>
> thanks in advance!
>
>
>
>