Created
August 19, 2019 16:36
-
-
Save nejckorasa/1ef88de48663d973f0cb094666289045 to your computer and use it in GitHub Desktop.
Kills all mac apps
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
| #!/bin/sh | |
| PIDS=$(ps axww -o pid,command | grep -v bash | grep Applications/ | grep -v /bin/sh | grep -v Self\Service | grep -v grep | awk '{print $1}') | |
| for i in ${PIDS} | |
| do | |
| echo "Killing PID $i" | |
| kill -9 $i | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment