Created
January 11, 2012 10:13
-
-
Save theirishpenguin/1594017 to your computer and use it in GitHub Desktop.
psgrep Bash function for no-nonsense ps output
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
# Drop this into your .bash_aliases or .bashrc | |
# Usage: | |
# psgrep some_substring_of_the_process_command | |
psgrep() { ps -ea -o pid,cmd|grep -v grep|grep $1 ;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment