Created
January 2, 2010 09:46
-
-
Save kashyapp/267443 to your computer and use it in GitHub Desktop.
simple mod to pgrep
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 | |
top -n1 |
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
psg () | |
{ | |
if [ $# -gt 0 ]; then | |
pgrep $1 | xargs ps -fwww; | |
else | |
echo "argument missing" 1>&2; | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment