Skip to content

Instantly share code, notes, and snippets.

@theirishpenguin
Created January 11, 2012 10:13
Show Gist options
  • Save theirishpenguin/1594017 to your computer and use it in GitHub Desktop.
Save theirishpenguin/1594017 to your computer and use it in GitHub Desktop.
psgrep Bash function for no-nonsense ps output
# 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