Comment cut, tr, grep, xargs (Score 1) 2362
ps -ef | grep | tr -s ' ' | cut -d' ' -f3 | xargs kill -9
replace -ef with -aux or -auxwww based on OS or need
Based on the ps you use, you might want to check if cut -f3 returns the PID.
"Right now I feel that I've got my feet on the ground as far as my head is concerned." -- Baseball pitcher Bo Belinsky