Paul Jarc wrote:
TimtheEagle <[EMAIL PROTECTED]> wrote:
main_auth=7
f=main
t=auth
ile=$f"_"$t
echo $ile
Either: echo "${!ile}"
Not portable.
Or: eval "echo \"\$$ile\""
Portable (even to Solaris /bin/sh which is not POSIX).
Not saying which you should use, just something to be awa
TimtheEagle <[EMAIL PROTECTED]> wrote:
> main_auth=7
>
> f=main
> t=auth
>
> ile=$f"_"$t
>
> echo $ile
Either: echo "${!ile}"
Or: eval "echo \"\$$ile\""
paul
Hi,
my problem is best desrbied with a simple example as follows. I know that
technically it is not correct but it illustrates what I am struggling to
achieve.
#
main_auth=7
f=main
t=auth
ile=$f"_"$t
echo $ile
I want the output from echo on the line above to be 7. The m