Created
June 13, 2014 14:50
-
-
Save regnerjr/0dfdd4b917dc072968c0 to your computer and use it in GitHub Desktop.
View the details of a defined bash function
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
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