exporting environment variables from a file?
I have some 10 environment variables that I repeatedly need to export, every time I need to do something. And typing 'export varname' ten times for each session is rather tedious. So I put those in a file abc.sh and changed mode to 777 to execute. But after I execute that shell script, the variables don't seem to have exported (when I do 'env | grep VARNAME).
Is it possible to export vars from shell script. If so, how?
Thanks in advance.
Also, as a side question, how to find (from terminal) if this is a redhat or a fedora or debian or any other distro? I did uname -a, and it doesn't mention distro name except the kernel version.
Last edited by concoran; 04-18-2008 at 05:34 PM.