parameter-expansion

Bash array expansion *

Joins array elements using the first IFS character when double-quoted; useful only when one joined string is intended.

Formal Syntax & Structure

bash syntaxbash
"${name[*]}"

Return Value

string

Joins array elements using the first IFS character when double-quoted; useful only when one joined string is intended.

Working Example

Example Snippetbash
items=('daily report' '' '*')IFS=: printf '[%s]\n' "${items[*]}"
Bash Reference