I would like to execute a script(h.ksh) with the passing argument kim
(which is a folder),
so when I run the command
h.ksh kim
the folder "kim" will be used as a variable in the h.ksh
Do I need to use the option function?
I would like to execute a script(h.ksh) with the passing argument kim
(which is a folder),
so when I run the command
h.ksh kim
the folder "kim" will be used as a variable in the h.ksh
Do I need to use the option function?
$1
,$2
, etc. So in your example$1
has the valuekim
. – kaylum Jan 22 '20 at 02:56