sed 文本替换
ip=127.0.0.1
my_ip=127.0.0.1
domain=ttt.com
loginDomain=ttt.com
sed -ie 's/127.0.0.1/10.211.55.4/g;s/ttt.com/test.com/g' node.properties
-i:将替换内容回写到 原文件中
-e:多行替换
s:表示 字符串
两个替换规则可以通过 ; 隔开
ip=10.211.55.4
my_ip=10.211.55.4
domain=test.com
loginDomain=te

浙公网安备 33010602011771号