David Morris wrote: [...] > > kill `ps -afe | grep '<pattern>' | awk '{print $2}'` Isn't this the same: kill `ps -afe | awk '/<pattern>/ {print $2}'` Dave