7

First variable is overwrited by the second variable in shell script

view full story
linux-howto

http://stackoverflow.com – 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 (HowTos)