shell脚本修改配置文件中的内容
2018-01-24 11:33
417 查看
测试“利用 shell脚本修改配置文件中的内容”
sed -i -e 's|BOOTPROTO=none|BOOTPROTO=dhcp|' conf.txt测试文件test_sed.txt中的内容为:
图 4 测试文件test_sed.txt
图 5 实验成功
sed -i -e 's|BOOTPROTO=none|BOOTPROTO=dhcp|' conf.txt测试文件test_sed.txt中的内容为:
图 4 测试文件test_sed.txt
图 5 实验成功
相关文章推荐
- shell脚本修改配置文件指定行的值
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本:修改包含特定内容的多个文件
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell修改配置文件脚本
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容
- shell脚本获取配置文件中的内容