shell script to kill all processes of defined type