[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] variable variables in bash/ksh?
- Subject: [ale] variable variables in bash/ksh?
- From: phasefx at magusaptus.com (Jason Etheridge)
- Date: Mon Apr 19 10:08:40 2004
- In-reply-to: <[email protected]>
- References: <[email protected]>
> 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