echo ${arr[@]}

Category: Bash Scripting

echo ${arr[@]}

Expand all elements of an array

Expands (prints) all elements of the array, space-separated.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.