commands.sh

function

all

Define a function.

More info →

Examples (4)

Define a function with the specified name

function func_name { echo "Function contents here"; }

Run a function named `func_name`

func_name

Define a function without the `function` keyword

func_name() { echo "Function contents here"; }

Display help

made by @shridhargupta | data from tldr-pages