Reading a bash variable in bash scripting problem
Hi,
I have a config file that contains: my.config: Code:
Section here is my parse_cmd script: Code:
#Get the parameter from the section Thanks, Indy |
Code:
eval echo $RESULT |
Moin,
you can do the config parsing in one step: Code:
jan@jack:~/tmp/config> cat cfg |
thanks colucix, easy and neat.
Jan64, I prefer not to do everything in one line. If it needs to be modified or improved, it's better policy in my opinion to have it separated into several commands than just one. Thanks for the tip though. Indy |
All times are GMT -5. The time now is 11:22 AM. |