Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-25 00:21:43 +00:00
parent 70f6f2ac08
commit f59fe2277e
13 changed files with 43 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`readarray < {{path/to/file.txt}} {{array_name}}`
- Remove trailing deliminators (newline by default):
- Remove [t]railing deliminators (newline by default):
`readarray < {{path/to/file.txt}} -t {{array_name}}`
@@ -24,11 +24,11 @@ source: https://github.com/tldr-pages/tldr.git
`readarray < {{path/to/file.txt}} -n {{n}} {{array_name}}`
- Skip the first `n` lines:
- [s]kip the first `n` lines:
`readarray < {{path/to/file.txt}} -s {{n}} {{array_name}}`
- Define a custom delimiter:
- Define a custom [d]elimiter:
`readarray < {{path/to/file.txt}} -d {{delimiter}} {{array_name}}`