Re: Combining variables

From: Kumar, Praveen (cahoot) (Praveen.Kumar@CAHOOT.COM)
Date: Thu Mar 18 2004 - 10:42:58 EST


echo ${PARM}${AZ}

Cheers
Praveen

-----Original Message-----
From: Raj Atwal [mailto:atwalrs@YAHOO.COM]
Sent: 18 March 2004 15:20
To: aix-l@Princeton.EDU
Subject: Combining variables

PARM10=hello
AZ=10

If I have the above in a script and I want to echo the value of my parameter
PARM10, how would I do that by combining my AZ parameter. For instance I
want to be able to do

echo $PARM$AZ

and have it echo the value of PARM10 to say hello. I can't figure how to
quote it to expand $PARM10.

TIA

Do you Yahoo!?
 <http://us.rd.yahoo.com/mailtag_us/*http://mail.yahoo.com> Yahoo! Mail -
More reliable, more storage, less spam

.sophos.3.79.03.18.

*********************
Internet communications are not necessarily secure and may be intercepted or
changed after they are sent. cahoot does not accept liability for any such
changes.
If you wish to confirm the origin or content of this communication, please
contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

This email may contain confidential information intended solely for use by
the addressee. If you are not the intended recipient of this communication
you should destroy it without copying, disclosing or otherwise using its
contents.

Please notify the sender immediately of the error.

cahoot is a division of Abbey National plc.
Abbey National plc is registered in England, registered number 2294747.
Registered Office: Abbey National House, 2 Triton Square, Regent's Place,
London, NW1 3AN.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:43 EDT