Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

File lines into an array?

This interview card answers: File lines into an array? Mapfile reads all lines. -t drops newlines. Example.

File lines into an array? mapfile reads all lines. -t drops newlines. Example.
File lines into an array? · Download PNG
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

See all AWS revision cards