mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-01 05:45:33 +08:00
readarray: add examples (#20023)
This commit is contained in:
@@ -19,6 +19,14 @@
|
||||
|
||||
`readarray < {{path/to/file.txt}} -n {{n}} {{array_name}}`
|
||||
|
||||
- Skip the first `n` lines:
|
||||
|
||||
`readarray < {{path/to/file.txt}} -s {{n}} {{array_name}}`
|
||||
|
||||
- Define a custom delimiter:
|
||||
|
||||
`readarray < {{path/to/file.txt}} -d {{delimiter}} {{array_name}}`
|
||||
|
||||
- Display help:
|
||||
|
||||
`help mapfile`
|
||||
|
||||
Reference in New Issue
Block a user