Skip to content

Instantly share code, notes, and snippets.

@kashyapp
Created January 2, 2010 09:46
Show Gist options
  • Save kashyapp/267443 to your computer and use it in GitHub Desktop.
Save kashyapp/267443 to your computer and use it in GitHub Desktop.
simple mod to pgrep
#!/bin/bash
top -n1
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