Hi,
I have a properties file that is read by the Unix Shell Script.
The script prompt the user to enter some input feilds and then based on user input it needs to look other values from properties file
Example
abc.properties file has following properties
Dev.DB2.name=someDEVDB2
Dev.DB2.ID=someDEVID
QA.DB2.name=someQADB2
QA.DB2.ID=someQAID
The script prompt use to enter the region as Dev or QA
Based on this the script need to get the value from property file.
The region is read as
$regionName say Dev
now i need to get the value of DB2.name
i tried doing
DB2_NAME= ${regionName}.DB2.name
but this doesnot return someDEVDB2
Any help is really appreciated