"Still getting the same error" without answering any of yazus questions doesn't tell us anything. It's like telling the doctor "It's still hurting" when being asked where it hurts.
#!/usr/bin/ksh for i in 1 2 3 4 do echo $i done
I have already tried the above, it works fine but in for loop declaration i should pass a variable, i cannot use static count
$count should be the last value, for i in {1..$count} [i feel as 'Peasant' said my shell version is 5.2]
kindly excuse me for asking second question in the same topic
Michael, issue regd the variable declaration using 'eval'
As suggested by you i have done the below and working fine....
eval gmp${count}=${i}
eval echo \$gmp${count}
----failing at below point, the varibale 'oname' not storing the result :wall::wall:---
eval oname=eval echo \$gm${count}