View Config Files Without Comments
Article Number: 23 | Rating: Unrated | Last Updated: Mon, May 21, 2018 9:23 PM
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/
Posted - Mon, May 21, 2018 8:38 PM. This article has been viewed 2766 times.
Filed Under:
Bash
There are no attachments for this article.
Related Articles

Script HW/SW AIX
Viewed 9925 times since Mon, Jun 4, 2018
awk printf
Viewed 16376 times since Wed, Aug 19, 2020
perl podstawy
Viewed 2397 times since Mon, May 21, 2018
HowTo: Clear BASH History
Viewed 2670 times since Mon, Feb 18, 2019
Dealing with Funny Files
Viewed 3250 times since Wed, May 30, 2018
Utilities to Tidy Up Your Reports
Viewed 16669 times since Wed, May 30, 2018
10 Xargs Command Examples in Linux / UNIX
Viewed 4585 times since Fri, Jun 1, 2018