Evaluating a nexted variable
Paul John Falstad
pfalstad at spot.Princeton.EDU
Sun Nov 11 12:34:34 AEST 1990
In article <MCNEILD.90Nov10134417 at mcneild.Software.Mitel.COM> mcneild at mcneild.Software.Mitel.COM (Doug McNeil) writes:
>$ a=b
>$ c=a
>Determing the value of "a" given "c".
>I came up with:
>$ eval z="$`echo $c`"
>$ echo $z
Or:
$ eval z=\$$c
$ echo $z
or:
$ eval echo \$$c
--
Paul Falstad, pfalstad at phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD
"Your attention, please. Would anyone who knows where the white courtesy
phone is located please pick up the white courtesy phone."
More information about the Comp.unix.shell
mailing list