Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-17 00:21:28 +00:00
parent 0881b6bcab
commit bda9e5a061
43 changed files with 339 additions and 67 deletions

View File

@@ -8,14 +8,14 @@ source: https://github.com/tldr-pages/tldr.git
> Remove shell variables or functions.
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-unset>.
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
- Remove variable, or if the variable doesn't exist, remove the function of the same name:
`unset {{foo}}`
`unset {{variable}}`
- Remove the variables foo and bar:
- Remove variables:
`unset -v {{foo}} {{bar}}`
`unset -v {{variable1 variable2 ...}}`
- Remove the function my_func:
- Remove the function:
`unset -f {{my_func}}`
`unset -f {{function_name1 function_name2}}`