Created
January 31, 2017 15:19
-
-
Save Kirens/bbf3173923bede2b87bd6c2e4f63d173 to your computer and use it in GitHub Desktop.
This line kills all bash scripts matching a string
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
| ps -eo pid,cmd | grep "[S]CRIPT_NAME" | grep -oP "^[^0-9]*\K[0-9]*" | xargs kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment