Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-10 00:19:31 +00:00
parent d4e4abca39
commit 4ccd905055
82 changed files with 557 additions and 148 deletions

View File

@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- Read lines from a file and insert them in an array:
`readarray {{array_name}} < {{path/to/file.txt}}`
`readarray < {{path/to/file.txt}} {{array_name}}`
- Remove trailing deliminators (newline by default):
`readarray -t {{array_name}} < {{path/to/file.txt}}`
`readarray < {{path/to/file.txt}} -t {{array_name}}`
- Copy at most `n` lines:
`readarray -n {{n}} {{array_name}} < {{path/to/file.txt}}`
`readarray < {{path/to/file.txt}} -n {{n}} {{array_name}}`
- Display help: