[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] variable variables in bash/ksh?



> XYZ="ABC"
> ABC=123456
> echo $$XYZ

There's probably a more elegant way to do it, but in bash:
eval echo $`echo ${XYZ}`

A phrase to google for is "double interpolation".

-- Jason