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