export variables while defining them
by aristosv from LinuxQuestions.org on (#4YTFP)
right now I am using this script to read from file.txt and create a few variables.
Code:while read value1 value2 value3
do
some stuff
done < file.txtIs there a way to also export these variables while reading them from file.txt without having to export them one by one?
Code:export value1 value2 value3Thanks


Code:while read value1 value2 value3
do
some stuff
done < file.txtIs there a way to also export these variables while reading them from file.txt without having to export them one by one?
Code:export value1 value2 value3Thanks