LANGUAGE » SHELL_SCRIPT » BASH » SYNTAX

Function

shell
myfunc() {
    # Do something
}

Allow calling function from script

shell
## ...
## Functions definition
## ...

"$@"

Usage

shell
./myscript.sh myfunc param