Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-04 00:18:48 +00:00
parent f83e06c66a
commit 44318fb1ce
8 changed files with 79 additions and 13 deletions

View File

@@ -13,15 +13,15 @@ source: https://github.com/tldr-pages/tldr.git
`test "{{$MY_VAR}}" = "{{/bin/zsh}}"`
- Test if a given variable is empty:
- Test if a given variable is empty ([z]ero length):
`test -z "{{$GIT_BRANCH}}"`
- Test if a file exists:
- Test if a [f]ile exists:
`test -f "{{path/to/file_or_directory}}"`
- Test if a directory does not exist:
- Test if a [d]irectory does not exist:
`test ! -d "{{path/to/directory}}"`