I'm writing a bash script and I am reading in a file with 3 lines each with only 1 number. I have to set each line to a new variable. I'm not quite sure how to do this but this is what I am doing now:
VAR1=0
VAR2=0
VAR3=0
while read line
do
VAR1=$line
VAR2=$line
VAR3=$line
done <$FILE
The result I'm getting is just the last line in the file for all 3 variables. Any help yould be great.