我想用bash 中的变量中的\正斜杠(/)替换反斜杠()。我这样试过,但它不起作用:
\
/
home_mf = ${home//(\)//(/)}
例如,我想
\a\b\c -> /a/b/c
bash bash-scripting
bash ×1
bash-scripting ×1