The following kills all processes (in ubuntu) which match the word ‘test123’;
kill $(ps aux | grep test123 | awk '{print $2}')
The ramblings of a software developer
The following kills all processes (in ubuntu) which match the word ‘test123’;
kill $(ps aux | grep test123 | awk '{print $2}')