I would like to import all the 'env' variables from another box to a local machine. I have copied the env variables into env_var.txt on the local box. I have performed the following:for i in `cat env_var.txt`; do export $i; doneHowever, this doesn't seem to set all my env variables correctly. I have modifieddo export $iinto do echo $iand the variables seem to display all fine. What could be causing this problem. Or is there an alternative way to import all the env variables?
Importing environment variables settings from another server
bash;shell script;environment variables