${name:w}
: Apply to each word
Applies the immediately following modifier on each word in the string.
Links
Examples
- Replace first occurrence in each word
- Output:
1 2
value="a aa aaa aaaa" echo $value:ws/a/z/
1
z za zaa zaaa
BashSupport Pro 是一款支持 w** 的 **Zsh 集成开发环境 - 立即试用!