read -a arr

Category: Shell & Bash

read -a arr

Read whitespace-separated words into an array

Reads a line of space-separated words and stores each word as an element in an array.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.