Files
shell-scripts/基础脚本/去掉注释.sh
2023-05-15 16:49:09 +08:00

4 lines
169 B
Bash

sed -i -r '/^[ ]*#/d;/^$/d' /etc/haproxy/haproxy.cfg #修改配置文件去掉注释,或者你可以直接复制我的代码
sed -i -r '/^[ ]*#/d;/^$/d'#Port 22