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

[no subject]



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


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00737" href="msg00737.html">[ale] variable variables in bash/ksh?</a></strong>
<ul><li><em>From:</em> jb at devsea.com (John Wells)</li></ul></li>
<li><strong><a name="00742" href="msg00742.html">[ale] variable variables in bash/ksh?</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00726" href="msg00726.html">[ale] variable variables in bash/ksh?</a></strong>
<ul><li><em>From:</em> jb at devsea.com (John Wells)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00729.html">[ale] Woof</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00731.html">[ale] (no subject) SPAM talk...</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00726.html">[ale] variable variables in bash/ksh?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00737.html">[ale] variable variables in bash/ksh?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00730"><strong>Date</strong></a></li>
<li><a href="threads.html#00730"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>