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
0
7
kill -9 $(ps aux | grep KeyWordHere | awk '{print $2}')
Thank you!
7
0
3.33
3
kill -9 $(ps aux | grep KeyWordHere | awk '{print $2}')
Thank you!
3
0
Are there any code examples left?
New code examples in category Shell/Bash