Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-29 00:19:25 +00:00
parent 5c2908e043
commit 2f5c37424b
24 changed files with 392 additions and 11 deletions

17
tldr/function Normal file
View 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`