使用sed替换指定文件指定行的指定文本 2015-04-09 枫叶 下面是将85行的127.0.0.1替换为192.168.0.3sed -i '85{s/127.0.0.1/192.168.0.3/}' /etc/zabbix/zabbix_agentd.conf