Created
May 4, 2018 00:29
-
-
Save rec3141/d3462ad653e3d9ca546a082e90656594 to your computer and use it in GitHub Desktop.
kill processes older than
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 -axeo pid,etime,command | awk '$2~/^0[1234]-/ && $0~/COMMAND/ { print $1 }' | xargs kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment