Kill process by name with `awk`

$> ps -ef | grep <process_name> | awk '{print $2}' | xargs kill -9

Kien Nguyen

A father, husband, and passinate programmer

Ho Chi Minh, Vietnam http://kiennt.com