1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/function.md

13 lines
284 B
Markdown
Raw Normal View History

2024-12-29 00:16:23 +02:00
# 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`