【发布时间】:2017-02-21 13:26:19
【问题描述】:
我有以下行:
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate -Dcom.sun.management.jmxremote.ssl=false"
但我尝试将其替换为:
KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=xxxx -Dremoting.bind_by_host=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management .jmxremote.ssl=false "
我尝试在https://unix.stackexchange.com/questions/66878/how-can-i-replace-text-after-a-specific-word-using-sed 之后使用 sed,但没有运气。
问题是因为双引号。任何帮助表示赞赏。
【问题讨论】:
标签: replace sed text-processing