bash question
William Park
opengeometry-FFYn/CNdgSA at public.gmane.org
Tue Oct 5 15:16:46 UTC 2004
On Tue, Oct 05, 2004 at 10:28:59AM +0200, Peter L. Peres wrote:
>
> I have asked this before: how does one expand parameters in bash for
> indirection ?
>
> Specifically:
>
> foo=123
> bar=foo
>
> now, what do I do to get the contents of foo knowing bar. I.e.:
>
> baz=?!?(bar) such that baz=123
>
> (find the ?!? operator, without using the name foo explicitly). I tried
> various ${:=} etc expansions with no luck.
man bash
/indirect
--
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>
Open Geometry Consulting, Toronto, Canada
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list