In the following script the response of sed is
export SECRET_KEY= '321321
I need to execute that response in the shell, exporting the value to SECRET_KEY i.e. echo $SECRET_KEY will give the exported key as 321321
aws-runas test >>test.txt
echo `sed -n -e 's/^.*\(\(export SECRET_KEY\).*\)/\1/p' test.txt`
I've tried using eval, source <(echo $command). it gives the following error
sed: -e expression #1, char 13: unterminated `s' command
Is there a way to execute the response of sed as a command?
 
    