|
Setting variables from a template
Is there a way I can write a file that contains the text which assigns variables, e.g.
string="hello world"
in a file say, variables.txt and have a shell script assign those variables locally e.g.
#!bin/bash
command_that_saves_variables_locally variables.txt
echo $string
and when I run the script I would get an output of
"hello world"
|