Posted By

wearetherock on 09/14/09


Tagged

Bash linux grep perl awk kill


Versions (?)

Kill Process with Perl Regular Expression


 / Published in: Bash
 

  1. kill -9 $(ps -eo pid,command | grep -P "(Util_).+[(py)|(pl)]|(Service_.+[(py)|(pl)])" | awk '{print $1}')

Report this snippet  

You need to login to post a comment.