I have a config.txt
file with the following:
VAR=('a' 'b' 'c')
database='mydb'
and I want to use the VAR
variable in the script (myscript.sh
) to check if any of the data in it exists in a search that will be made on the database.
The search I am doing is like this:
output=$(mysql $database -u $user -p$pass -se "select name from my_table where word = '$VAR'")