${(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 2
values=(first second third) echo -e "Array elements:\n${(F)values}"
1 2 3 4
Array elements: first second third
BashSupport Pro 是一款支持 F** 的 **Zsh 集成开发环境 - 立即试用!