#HOW TO SOURCE THE config.json file?
I would like to use the variables in config.josn file to prepare a query and execute in Linux Shell as show below.
query= "--connect $host $usr_nm $pwd"
I am new to shell scripting. Please help me on this.
Last edited by RGRT; 06-29-2017 at 03:22 PM..
I'm afraid there quite some open questions, like
- which combinations from that config file entries do you need,all permutations from the 10 - 15 entries?
- which section of the file should be used, or is there just one?
- how are you going to use the results, source them in myscript.sh?
- are you sure the host part and the DB part will be joined by a / ?