-
Script Error
Folks,
I have peculiar kind of error. my script goes like
cat inputfile> while read param
do
Array[$i]=$param
y=`expr $y + 1`
done
Output:-
array[1]=line1
array[2]=line2
array[3]=line3
.
.
.
.
array[4095]=line
ksh: script out of range
When i run script passing very large input file. script abends in the middle of execution saying "ksh: script out of range"
Possible reason is max array element size is 4095 which is exceeded in my case. Now my question, is there any settings in shell which i can use to increase the max array element size.
Guys please post ur suggestions.
Thanks!
Sharif.S
-
Re: Script Error
Well, this problem of yours will be present only KShell. (ksh). Use BASH ( Born again Shell) or a recent version of KShell.
your problme will be solved. Otherwise there's no way to solve this problem. (None that I am aware of).
-Kalayama
-
Re: Script Error
Thanks kalayama.. but i have ti use only existing k sh.. i've foud round abt process for it..
Sharif.S