Try
DBNAME=PROD LINE_PROD=100 CMD="echo \$LINE_$DBNAME" echo "$CMD" eval $CMD "Dilip" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 15/07/03 11:34 Please respond to ORACLE-L To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]> cc: Subject: OT: unix shell script question Hi List, The requirement is as follows: DBNAME=PROD ( 'DBNAME' variable contains value 'PROD' ) LINE_PROD=100 ( 'LINE_PROD' variable contains value 100 ) Now I want to echo the LINE_PROD variable using DBNAME variable. e.g echo ${LINE_${DBNAME}} should return 100. Is this possible and if yes, how ? I tried some ways but couldn't find any way. Regards, ~Dilip CONFIDENTIAL: The information contained in this email (including any attachments) is confidential, subject to copyright and for the use of the intended recipient only. If you are not the intended recipient please delete this message after notifying the sender. Unauthorised retention, alteration or distribution of this email is forbidden and may be actionable. Attachments are opened at your own risk and you are advised to scan incoming email for viruses before opening any attached files. We give no guarantee that any communication is virus-free and accept no responsibility for virus contamination or other system loss or damage of any kind. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Garry Gillies INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).