![]() |
create an array map of values frm a configuration file
Hi ,
I have the following scenario where by I have configuration file that has the following : Code:
typeA->testS1->testC1 typeB->testS2->testC2 typeC->testS3->testC3 and so on so in my bash script i read the cfgFile that will use the name to determine the Server and Client So when a user enters choice typeA Server =testS1 and Client=testCA Code:
|
As the script sources the config file it could be
Code:
name=( typeA typeB typeC typeD typeE ) |
I am trying to read the values of NAME from the config file into array like so
Code:
It won't work any one spot why I need the name array( typeA typeB ...... ) |
I have also tried to use
Code:
|
| All times are GMT -5. The time now is 12:07 AM. |