bug-bash
[Top][All Lists]
Advanced

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

Evaluating a variable within a variable


From: TimtheEagle
Subject: Evaluating a variable within a variable
Date: Mon, 22 Oct 2007 18:16:15 -0700 (PDT)

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 main_auth=7 will
be read from a separate file in due course.

I hope that is clear enough.

Any help greatly appreciated.

Thanks  Cheers Tim 
-- 
View this message in context: 
http://www.nabble.com/Evaluating-a-variable-within-a-variable-tf4674649.html#a13355804
Sent from the Gnu - Bash mailing list archive at Nabble.com.





reply via email to

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