From the bash software manual:
The pattern is expanded to produce a
pattern just as in filename expansion. Parameter is expanded and the
longest match of pattern against its value is replaced with string.
... If pattern begins with ‘
%’, it must match
at the end of the expanded value of parameter.
And so I've tried:
Where string is an absolute file path (
new are variable strings.
However this seems to be trying to match the literal
What is the syntax for this?
/foo/sb1/foo/bar/sb1 should become
/foo/foosb1other/foo/bar/foosb1bar should become