I wanted to kill all processes (belonging to me, USER) that started with the same string, (EXPRESSION).
The following does just that.
ps -u USER | grep EXPRESSION | awk ‘{print $2}’ | xargs kill -9
I wanted to kill all processes (belonging to me, USER) that started with the same string, (EXPRESSION).
The following does just that.
ps -u USER | grep EXPRESSION | awk ‘{print $2}’ | xargs kill -9