Created
February 10, 2021 12:10
-
-
Save ride90/218097be07a20491b1db1d78ac7b71a9 to your computer and use it in GitHub Desktop.
Kill all processes amtch regex
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
kill -9 $(ps aux | grep "REGEX" | grep -v grep | awk '{print $2}' | tr '\n' ' ') > /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment