I have a first script for exemple :
test1.sh
$1='world'
var1="hello world"
echo $var1
So, i want a script shell, which execute test1.sh according to condition :
for exemple :
if [ $1= world ];
#execute test1.sh
i don't know how to rely the two shells, if you have any suggestions i ll be thankfull !
$1
refers to the first argument after your script when you run it, you cannot define it as you do.bash script.sh world
-->echo $1
in the script will returnworld
. – FelixJN Dec 02 '19 at 15:48