mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00
function: add page (#15241)
This commit is contained in:
parent
a0a5e6a6cb
commit
b89072d937
1 changed files with 12 additions and 0 deletions
12
pages/common/function.md
Normal file
12
pages/common/function.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# function
|
||||||
|
|
||||||
|
> Define a function.
|
||||||
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#Shell-Functions>.
|
||||||
|
|
||||||
|
- Define a function with the specified name:
|
||||||
|
|
||||||
|
`function {{func_name}} { {{echo "Function contents here"}}; }`
|
||||||
|
|
||||||
|
- Run a function named `func_name`:
|
||||||
|
|
||||||
|
`func_name`
|
Loading…
Add table
Reference in a new issue