${(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 is a Zsh IDE with support for ${(C)…} – try it now!