${(C)…}
: Capitalize resulting words
Capitalize the words, which are separated by non-alphanumeric characters.
Please note that this flags splitting is different to the usual field splitting of Zsh.
Links
Examples
- Capitalize words
- Output:
1 2
value="this is a multi-word example" echo ${(C)value}
1
This Is A Multi-Word Example
BashSupport Pro 是一款支持 C** 的 **Zsh 集成开发环境 - 立即试用!