The readarray command (also spelled mapfile) was introduced in bash 4.0.
readarray
mapfile
readarray -t a < /path/to/filename
2.1m questions
2.1m answers
60 comments
57.0k users