View Config Files Without Comments


I’ve been using the following grep invocations to trim comments out of config files

 

 

#grep ^[^#] /etc/httpd/conf/httpd.conf
or
#egrep -v "^#|^$" /etc/httpd/conf/httpd.conf
or
#grep -v "^#" /etc/httpd/conf/httpd.conf


source: https://sysadmincorner.wordpress.com/category/aix/


Article Number: 23
Posted: Mon, May 21, 2018 8:38 PM
Last Updated: Mon, May 21, 2018 9:23 PM

Online URL: http://kb.ictbanking.net/article.php?id=23