mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-14 20:48:35 +00:00
Update cheatsheets
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user