Files
shell-scripts/基础脚本/去掉注释.sh
2024-11-27 10:33:20 +08:00

4 lines
169 B
Bash

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