📅  最后修改于: 2022-03-11 14:52:43.756000             🧑  作者: Mango
// You can change the to kill other processes
search_terms='java'
kill $(ps aux | grep "$search_terms" | grep -v 'grep' | awk '{print $2}')