这可能很简单但我坚持在shell/bash中完成这个.我输入像" a/b/c/d",我想用' /' 替换所有' ',\/输出将是'a/b/c/d'
a/b/c/d
/
\/
另一个例子是12.12.12.12/32 >>>12.12.12.12\/32
12.12.12.12/32
12.12.12.12\/32
任何帮助,将不胜感激.
bash shell
bash ×1
shell ×1