when i read values from user in an array, It displays Bad Variable error.
code is given below.
where n is maximum number of elements in an array.
code is given below.
Code:
count=0 while [ $count -lt $n ] do read arr[$count] count=`expr $count + 1` done
Comment