Hi,
I have a piece of code as follows:
i=0
while read LINE
do
var = "$LINE"
i=$((i+1))
echo "${var}"
done < file
I want to assign value to the array var[i].
However, when i execute the script i get a error.
Please can you help me know what i am missing.
I ultimately want to store input values in a array got from the user
Thanks.