I am working on a ksh script with arguments. one of the argument passed to the script has the following format: parm1,parm2,parm3,parmX.....
I don't know how many parmX will be passed, it's variable and I would like to assign each parmX to a different $X variable using awk.
example:
if I have parm1,parm2,parm3 , I expect to have
$1=parm1
$2=parm2
$3=parm3
....
how to do that with awk ?
thanks
I don't know how many parmX will be passed, it's variable and I would like to assign each parmX to a different $X variable using awk.
example:
if I have parm1,parm2,parm3 , I expect to have
$1=parm1
$2=parm2
$3=parm3
....
how to do that with awk ?
thanks