Skip to content

Instantly share code, notes, and snippets.

@regnerjr
Created June 13, 2014 14:50
Show Gist options
  • Save regnerjr/0dfdd4b917dc072968c0 to your computer and use it in GitHub Desktop.
Save regnerjr/0dfdd4b917dc072968c0 to your computer and use it in GitHub Desktop.
View the details of a defined bash function
bfunctdef () {
#show the definition of a bash_function
# Note the quoting, so the input variable is expanded.
declare -f | awk '/^'$1'/,/^}/'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment