I am trying to export some path names based on text in a text file however I am having some trouble,
file="config.txt"
while read line
do
LINE= "$line"
echo "$line"
done <"$file"
export LINE
I have tried using the above code but it does not save the String in config.txt to LINE. Any suggestions would be great!!