1

Refering to compound variables with a variable name

view story
linux-howto

http://www.unix.com – Hello, Here is my problem using KSH I have a set of compound variables, let say cmp_var1 cmp_var2 The names of these variables are stored in an indexed array. How can I access the subfields of these compound variables ? I tried: Code: set -A cmp_varnames=(cmp_var1 cmp_var2) for cmp in ${cmp_varnames[*]} do eval ${${cmp}.field} done That does not work, I tried a few other things, no luck. Thanks for helping (HowTos)