hi everyone ,
i want to set parameter to a script when im executing it.
for ex ;
sh abc.sh -parameter1=palsec -parameter2= secpal -parameter3=lapsec
how can i do this ?? pls help.
Im using $1 $2 $3 in my script but it works but this is dummy solution i think.
thanks a a lot.
ex1:
----- OK----------------------
sh abc.sh palsec secpal lapsec
echo $1 $2 $3
-----OK-----------------------
ex2:
-----------HELP -----------
sh abc.sh -parameter1=palsec -parameter2= secpal -parameter3=lapsec
?????
?????
?????
-----------HELP -----------

Reply With Quote

