
Jake Z. answered 05/05/19
Tutor
5.0
(495)
Experienced Linux Systems Programmer with an Emphasis on C
If you just want to kill all the processes containing "my_pattern", I would just run:
(where the asterisks represent the wildcard in BASH)
killall *my_pattern*