Created
November 16, 2014 18:12
-
-
Save flavianmissi/5e98e244c66e44d2480b to your computer and use it in GitHub Desktop.
awk: filter processes ids based on pattern and writes to file
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 -ef |grep "python challange" | awk '{print $2;}' > tmp | |
# to kill them: | |
kill -9 $(cat tmp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment