${name:w}: Apply to each word

Applies the immediately following modifier on each word in the string.

Examples

Replace first occurrence in each word
1
2
value="a aa aaa aaaa"
echo $value:ws/a/z/
Output:
1
z za zaa zaaa
BashSupport Pro is a Zsh IDE with support for $varName:wtry it now!
© 2020–2024 Joachim Ansorg
Imprint
Privacy Policy
Legal