For example ,
I have two shell script file name main.sh and child.sh and one ini file name param.ini.
In main.sh
#!/bin/bash
./usr/child.sh
echo $param // show Jame
var=${param}How are you
echo $var // output show only How are you and Jame is overwrited.The output should Jame How are you
In child.sh
#!/bin/bash
./usr/param.ini
param=$name
echo $param // show Jame
In param.ini
name=Jame
After execute main.sh the output show How are you and Jame is missing.
Jame is overwrited.
What I want is Jame How are you
I think it will be ok with replace method of shell.
Set a keyword in value of ini file. For example
In shell, implement replace method as follows: