[ale] variable variables in bash/ksh?

Jason Etheridge phasefx at magusaptus.com
Mon Apr 19 10:08:40 EDT 2004


> 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



More information about the Ale mailing list