解决配置文件注释太多的方法 去掉空行和注释行: [root@]# cat *.conf |grep -v ^$|grep -v ^#|grep v " #" >a.conf [root@]# mv a.conf *.conf