mapfile

Read lines into an array

low risk

interactive breakdown — edit the command and press Explain
$ 
What it does

Reads lines from stdin into a bash array — safer than word-splitting command output.

Common flags
FlagMeaning
-tStrip trailing newlines
Examples
mapfile -t files < <(find . -name "*.log")Collect results safely · explain & risk-check →
Related
read declare
Open the full explainer →More in Shell & Scripting

Reference text is hand-written and may be incomplete — check man mapfile for your version. Test destructive commands on a non-production system first.