|
zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
zpmod provides a readarray builtin (bash-like) to read records into an indexed array.
Basic usage:
Common options:
| Option | Meaning |
|---|---|
| -d X | Record delimiter (default newline) |
| -t | Trim trailing delimiter from each record |
| -n N | Read at most N records |
| -O I | Start assigning at index I (1-based) |
| -s N | Skip first N records |
| -u FD | Read from file descriptor FD |
| -C cb | Call callback after each quantum batch |
| -c Q | Batch size for -C (default 5000) |
Examples:
See full details in Reference › Builtins.