${(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.

Examples

Capitalize words
1
2
value="this is a multi-word example"
echo ${(C)value}
Output:
1
This Is A Multi-Word Example
BashSupport Pro is a Zsh IDE with support for ${(C)…}try it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal