Ravi Sir's Cards › AWS
File lines into an array?
This interview card answers: File lines into an array? Mapfile reads all lines. -t drops newlines. Example.
Read card text
What this card says
What it is
mapfile reads all lines.
Why it matters
-t drops newlines.
How / example
Example.
mapfile -t hosts < hosts.txt