| Author |
Form Variable Name based on the value of another variable in shell script. [ksh]
|
Amit Vinod Dali
Ranch Hand
Joined: Apr 14, 2010
Posts: 42
|
|
I have one requirement as ;
xyz_type_map.properties contains data like;
After line in the above code, i want to store the value the property is based on the variable. solution for line number 03 in the first code snippet.
Is there any other alternative to get the "property value" based on the run time "property name" ?
|
 |
Stefan Wagner
Ranch Hand
Joined: Jun 02, 2003
Posts: 1923
|
|
I don't see what your problem is, what xyz_type_map.properties has to do with it, and although I don't use ksh, but bash, I suspect your usage of echo is useless.
So property_name and val contain the same content.
What is property value, which influence is '. ${file_loc}/xyz_type_map.properties' supposed to have?
|
http://home.arcor.de/hirnstrom/bewerbung
|
 |
 |
|
|
subject: Form Variable Name based on the value of another variable in shell script. [ksh]
|
|
|