I have a script that uses a numeric variable resA.
#!/bin/ksh
typeset -i resA=1,233
It has to be an integer type variable, however, it's value assigned is character.
So it gives an error:
$> ksh -x run.ksh
+ typeset -i resA=1,22
run.ksh[2]: 1,22: syntax error
How do I change 1,22 into a number 122 in korn shell?