> 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