Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash show function definition

$ type function_name
# or
$ declare -f function_name

# Example - type
$ type cbc
cbc is a function
cbc () 
{ 
    certbot certificates | grep --color=auto -E "^|$1"
}

# Example - declare
$ declare -f cbc
cbc () 
{ 
    certbot certificates | grep --color=auto -E "^|$1"
}
 
PREVIOUS NEXT
Tagged: #bash #show #function #definition
ADD COMMENT
Topic
Name
8+3 =