Bash function to read the lines of a file into an array using the builtin, mapfile.

Posted Over 9 years ago by aslamK.
gist.github.com

Reads the lines of the specified file into an array. The resulting array is in the dedicated variable, MAPFILE.