【发布时间】:2022-01-26 13:00:04
【问题描述】:
我想在 RHEL6 中将 fileSystem: "/test/test" 更改为 fileSystem: "/apptest",我尝试使用:
sed -i 's/fileSystem: "/test/test"/fileSystem: "/apptest"' text.txt
但不起作用,输出:
sed: -e expression #1, char 26: unknown option to `s'
我不知道如何更改它。我阅读了一些文件,但不知道如何工作。
你能帮帮我吗?
问候。
【问题讨论】:
-
更改路径中的 sed 分隔符或转义 le
/