Hi,
I guess it must be possible to pass in named parametrs, but I dont know how.
I know that you could read parameters by saying $1, $2, $3...etc., but the users want to pass in values in any order, but they will say like
$run_my_script.ksh PERCENT=10 NAME=JANE
OR
$run_my_script.ksh NAME=JOHN CITY=TIMBAKTOO
so within my script I need to be able to read the value for PERCENT, NAME and CITY if they are passed.
Anyone help me with this please.
Many Thanks
I guess it must be possible to pass in named parametrs, but I dont know how.
I know that you could read parameters by saying $1, $2, $3...etc., but the users want to pass in values in any order, but they will say like
$run_my_script.ksh PERCENT=10 NAME=JANE
OR
$run_my_script.ksh NAME=JOHN CITY=TIMBAKTOO
so within my script I need to be able to read the value for PERCENT, NAME and CITY if they are passed.
Anyone help me with this please.
Many Thanks