Tuesday, June 28, 2011

Remove comments and blank lines from configuration files using grep

grep -v '^#' /etc/httpd/conf/httpd.conf | grep -v '^$'

No comments:

Post a Comment