bash kill all processes that appears on grep code example
Example: kill all process that match in grep
ps aux | grep -ie amarok | awk '{print "kill -9 " $2}'
ps aux | grep -ie amarok | awk '{print $2}' | xargs kill -9
ps aux | grep -ie amarok | awk '{print "kill -9 " $2}'
ps aux | grep -ie amarok | awk '{print $2}' | xargs kill -9