readarray: add examples (#20023)

This commit is contained in:
Managor
2025-12-15 16:38:24 +02:00
committed by GitHub
parent c228a5b261
commit 68ff1c791e
+8
View File
@@ -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`