${(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 是一款支持 F** 的 **Zsh 集成开发环境 - 立即试用!