sed -i "s/old/new/g" file
替换文本
Linux
通用
⭐⭐ 常用
2 次浏览
⭐⭐ 常用
2 次浏览
详细说明
替换文本
使用示例
sed -i "s/192.168.1.1/192.168.1.10/g" config.txt
标签:
#linux
#运维