${(F)…}: Join array with newlines
(F) joins the elements of an array together using newlines (\n).
${(F)name} is equivalent to ${(pj:\n:)name}.
Links
Examples
- Join array elements with `
- `
- Output:
1 2values=(first second third) echo -e "Array elements:\n${(F)values}"1 2 3 4Array elements: first second third
BashSupport Pro is a Zsh IDE with support for ${(F)…} – try it now!