Variable substitution in a C Shell (Summary)

lim at ecs.umass.edu lim at ecs.umass.edu
Tue Dec 4 08:14:49 AEST 1990


Thanks to all who replied to my question about variable substitution in a C 
Shell. Here's a summary of what I got:

@ base = 5
set level1 = base
set level2 = level1

eval echo \$$level1 ==> 5
eval echo \$`eval echo \$$level2` ==> 5


Jonathan Lim



More information about the Comp.unix.shell mailing list