1,去掉行首的空格或者tab
2,去掉行首是“#|空行”
sed 's/^[ \t]*//g' /etc/httpd/conf/httpd.conf
将行首空格|tab去掉
sed 's/^[ \t]//g' /etc/httpd/conf/httpd.conf | grep ^[^#]