Hi,
I have the following requirement.
V="First"
R="V"
echo $$R
The output should be First. How do i achieve this.
how do we evaluate the $R and evaluate it to $V as $R contains V
and $V is First.
Thanks
Vijay
Hi,
I have the following requirement.
V="First"
R="V"
echo $$R
The output should be First. How do i achieve this.
how do we evaluate the $R and evaluate it to $V as $R contains V
and $V is First.
Thanks
Vijay
try $R=${V}
or $R=$V
$ V="First"
$ R="V"
$ eval echo \$$R
First
If your version of ksh supports nameref
$ V="First"
$ nameref R="V"
$ echo $R
First