[lug] Regex from shell

David Anselmi anselmi at anselmi.us
Sat Nov 20 16:53:12 MST 2004


David Morris wrote:
[...]
> 
>     kill `ps -afe | grep '<pattern>' | awk '{print $2}'`

Isn't this the same:

kill `ps -afe | awk '/<pattern>/ {print $2}'`

Dave



More information about the LUG mailing list