Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 339

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 392

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 394
sed删除配置文件多余行(指定字符开头、空行)内容 - Joyber 的博客

#删除;开始的注释行
sed "/^;/d" php.ini

#删除空行
sed "/^$/d" php.ini

以上只是把结果输出到终端,方便查看是否正确,确认无误后可以在sed命令后加上 -i 参数,即在源文件中进行修改并保存
sed -i "/^;/d" php.ini
sed -i "/^$/d" php.ini

标签: none

添加新评论