Say I want to kill every process containing the word amarok. I can print out the commands I want to execute. But how do I actually make the shell execute them. ie.
If you want to execute the output of a command, you can put it inside $(...), however for your specific task take a look at the killall and pkill commands.