Skip to content

Instantly share code, notes, and snippets.

@indirect
Created August 3, 2011 22:39
Show Gist options
  • Save indirect/1124029 to your computer and use it in GitHub Desktop.
Save indirect/1124029 to your computer and use it in GitHub Desktop.
print the definition of a function in bash
$ type -a psg
psg is a function
psg ()
{
ps wwwaux | egrep -i "($1|%CPU)" | grep --colour=auto -v grep
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment