I would like my bash script to import variables from a text file
#!/bin/bash
for i in 1 2 3
do
IMPORT THE CONTENT OF FILE file$1.txt
python $VAR
done
Where the file text contain the value of the variable as
VAR=SOMETHING
I tried cat file$i.txt but the $VAR is not populated. What would be a way of doing that?