I'm using variable variables in a script, but there's one annoying thing that I can't seem to figure out.
if
$foo="egg";
then
${"x_$foo"} is the same thing as $x_egg
but...
${"$foo_x"} is not the same thing as $egg_x
I have to have a variable where the first part is another variable and the last part is _x.
Any help is appreciated.