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