Linux sed命令实现替换文本内容

/root/data/code-s3201/publish_codex/deploy/db.properties

db.properties中的 1.0.0.6 替换为 1.0.0.7

sed -i 's/1.0.0.6/1.0.0.7/' /root/data/code-s3201/publish_codex/deploy/db.properties

cat /root/data/code-s3201/publish_codex/deploy/db.properties | grep '1.0.0.7'

猜你喜欢

转载自www.cnblogs.com/xingchong/p/11657702.html
今日推荐