sed sed sed
vim模式下
:%s/demon/newdemon/g
#sed -i ‘s/nologin/login/g‘ 接文件名 替换关键词
#sed -i ‘/^SELINUX/s/enforcing/disabled/g‘ /etc/selinux/config
四剑客
原文:http://mustafayin.blog.51cto.com/12558614/1914520