bug-bash
[Top][All Lists]
Advanced

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

Re: Evaluating a variable within a variable


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]