mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-17 03:49:18 +00:00
Update cheatsheets
This commit is contained in:
17
tldr/function
Normal file
17
tldr/function
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user