Tuesday, October 25, 2011

kill processes that match grep pattern

I open about 20 copies of the same file. I used the command below to kill them.
kill -9 `ps auwwwx | grep "vim /tmp/continuous_migration.log" | awk '{print $2}' | xargs

No comments:

Post a Comment