mapfile - read lines from stdin into an array
mapfile [-t] ARRAY
Options you will use
-t- Strip the trailing newline from each line.
Taught in
Try mapfile in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.