用grep剔除掉配置文件空白行和注释 发表于 2015-11-29 更新于 2024-09-19 1grep -ve "^[[:space:]]*[#;]\|^$\|^[[:space:]]*$" /etc/samba/smb.conf