File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes Form Variable Name based on the value of another variable in shell script. [ksh] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Form Variable Name based on the value of another variable in shell script. [ksh]" Watch "Form Variable Name based on the value of another variable in shell script. [ksh]" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form Variable Name based on the value of another variable in shell script. [ksh]