mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
13 lines
308 B
Markdown
13 lines
308 B
Markdown
![]() |
# function
|
||
|
|
||
|
> Define una función.
|
||
|
> Más información: <https://www.gnu.org/software/bash/manual/bash.html#Shell-Functions>.
|
||
|
|
||
|
- Define una función con el nombre especificado:
|
||
|
|
||
|
`function {{func_name}} { {{echo "Contenido de la función aquí"}}; }`
|
||
|
|
||
|
- Ejecuta una función llamada `func_name`:
|
||
|
|
||
|
`func_name`
|