${name:&}: Repeat substitution
Repeats the previous :s substitution.
Use :g& to replace all occurrences of the previous substitution.
Links
Examples
- Print path without file extension
- Output:
1 2 3 4 5value="Joe Dalton, William Dalton, Jack Dalton and Averell Dalton" # Strip first "Dalton" value=${value:s/ Dalton//} # Strip all remaining echo ${value:g&}1Joe, William, Jack and Averell
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $varName:amp - probieren Sie es jetzt aus!