第一种方法
[apache1@test2 conf]$ grep -v "#" httpd.conf |grep -v "^$" >>httpd.conf.bak
-v排除
^空行
>>追加
第二种方式
more 文件 |grep ^[^#]
wg_ojGiEGiG ©著作权
第一种方法
[apache1@test2 conf]$ grep -v "#" httpd.conf |grep -v "^$" >>httpd.conf.bak
-v排除
^空行
>>追加
第二种方式
more 文件 |grep ^[^#]
下一篇:apache启动方式
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M