Created
June 26, 2015 14:53
-
-
Save pgaref/07ab9fa9b6208517a329 to your computer and use it in GitHub Desktop.
Kill a bunch of processes by name
This file contains 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 var in $(ps aux | grep ansible | awk '{print $2}'); do echo $var; sudo kill -9 $var; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment