I create a string result from my shell script and i want to execute it as a shell command.
For example file_a is:
user1@gmail.com
user2@gmail.com
script:
awk '{print "mail -s \"welcome\"", $1}' file_a
And result:
mail -s "welcome" user1@gmail.com
mail -s "welcome" user2@gmail.com
So i want to execute the result as a set of shell commands.