Just use eval command for running string output. Asfor example:
eval $cmd #execute command included in string value of $cmd variableOrfor a more sophisticated use run commands storedinlinesof a file:
cat commands_file.txt | whileread line; do eval $line; done