Created
April 24, 2019 03:17
-
-
Save le0park/9c0d71785acaa30f79ab865882812802 to your computer and use it in GitHub Desktop.
Kill many instances of a running process
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for pid in $(ps -ef | awk '/some search/ {print $2}'); do kill -9 $pid; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://unix.stackexchange.com/questions/50555/kill-many-instances-of-a-running-process-with-one-command