#!/bin/rc for(i in `{ps ax | grep $1 | grep -v grep | awk '{print $1;}'}) echo kill -9 $i