https://stackoverflow.com/questions/3510673/find-and-kill-a-process-in-one-line-using-bash-and-regex

1
2
3
  
kill $(ps -ef|grep process-foo|grep -v grep |awk '{print $2}')