|
| From: | Paul Jarc |
| Subject: | Re: Evaluating a variable within a variable |
| Date: | Tue, 23 Oct 2007 03:38:24 -0400 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
TimtheEagle <tim.cheyne@safecom.co.nz> wrote:
> main_auth=7
>
> f=main
> t=auth
>
> ile=$f"_"$t
>
> echo $ile
Either: echo "${!ile}"
Or: eval "echo \"\$$ile\""
paul
| [Prev in Thread] | Current Thread | [Next in Thread] |