Variables Value (ksh)

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!
shulamitm [ Di, 01 Januar 2008 11:46 ] [ ID #1896953 ]

Re: Variables Value (ksh)

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!
>
>
>
>
Janis Papanagnou [ Di, 01 Januar 2008 13:50 ] [ ID #1896956 ]
Linux » comp.unix.shell » Variables Value (ksh)

Vorheriges Thema: PATH puzzle
Nächstes Thema: cool app to generate 2D plots directly to an image file from the