Message-Id: <25929.337789@fatcity.com> From: "Garry Gillies" Date: Tue, 15 Jul 2003 14:04:23 +0100 Subject: Re: OT: unix shell script question Try DBNAME=PROD LINE_PROD=100 CMD="echo \$LINE_$DBNAME" echo "$CMD" eval $CMD "Dilip" Sent by: ml-errors@fatcity.com 15/07/03 11:34 Please respond to ORACLE-L To: Multiple recipients of list ORACLE-L 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