Re: How to get value of environment variable in variable name?
avoncampe_at_gmail.com
Date: 08/31/05
- Next message: Loki Harfagr: "Re: string search adn replace"
- Previous message: Chris F.A. Johnson: "Re: How to get value of environment variable in variable name?"
- In reply to: Chris F.A. Johnson: "Re: How to get value of environment variable in variable name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Aug 2005 08:47:14 -0700
Chris F.A. Johnson wrote:
> In any Bourne-type shell:
>
> eval "value=\$$var"
Thanks! That works like a charm. The critical piece I was missing
was the backslash in front of the first $. I knew the answer would
include an eval, but the various combinations I tried didn't work.
Thanks again,
Alfred
- Next message: Loki Harfagr: "Re: string search adn replace"
- Previous message: Chris F.A. Johnson: "Re: How to get value of environment variable in variable name?"
- In reply to: Chris F.A. Johnson: "Re: How to get value of environment variable in variable name?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|