Created
November 1, 2016 22:50
-
-
Save kckrinke/5cebbf2e194ede044bd7d8b3f112886c to your computer and use it in GitHub Desktop.
Grep the process list, without grep'ing grep itself.
This file contains 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/bash | |
: "${PS_OPTS:=ax}" | |
exec ps ${PS_OPTS} | egrep -v '\b(psgrep|grep)\b' | egrep "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment