I have to get "export" lines from a remote file on another server, then set the current sh session env dynamically.
However, echo with export doesn't seem to work.
echo `export CONFIGA=configurationA`
I try to create this script as generic and as simple as possible, cause there are many export statements from the remote file, and not all is used. The ones I need will be determined by certain patterns, but the number of those statements is also dynamic.
Now I wonder if this can be done in ksh script, but I have no other options at the moment.