mapfile

readarray (built-in Bash command)

The manual page and help for the readarray built-in Bash command. The readarray command reads lines from standard input that are placed in an indexed array. The command is synonymous with the mapfile command.

mapfile (Built-in Bash command)

The manual page and help for the built-in Bash command in the mapfile. The mapfile command reads lines from standard input that you place in an indexed array.