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

[ale] variable variables in bash/ksh?



Jason Etheridge wrote:
>> 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".

That did not appear to work for me.

-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft