How to pass variables from another file into shell script?
I like to pass variables from another file into shell script and those variables will be used in a sql block to update a database table whenever that sql block is run inside the shell script. One line of variable will be passed to the shell script at a time starting from the very top one. This process will continue in a loop until all the variable lines are passed.
Examples of variable file (var.txt) and shell script are below. All I need to do pass variables date parameter 1:date parameter 2 from var.txt file to var1 and var2 respectively into below shell script in a loop process. Please advise how I pass variables and modify below shell script with loop.
My variable file is following as it has date parameters:
Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.