${name:s/<search>/<replace>/}
: Search and Replace
Substitutes the first occurrence of <seach>
with <replace>
.
Use :gs/<search>/<replace>/
to replace all occurrences of <search>
.
Links
Examples
- Print path without file extension
- Output:
1 2
path="/dir/subdir/file.csv" echo $path:r
1
/dir/subdir/file
BashSupport Pro 是一款支持 s** 的 **Zsh 集成开发环境 - 立即试用!