I have to initialize a script variable in a for loop with different values taken from a input file as following:
#!/bin/bash
VAR1=0
VAR2=0
exec < $1
while read line
do
#initialize VAR1 AND VAR2 taking the values from '$line' ($1 and $2)
#and then
echo $VAR1
echo $VAR2
#here do whatever with both variables...
done
How to initialize VAR1 with $1 and VAR2 with $2 ??
Thanks in advance!!