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 1936 times.
Filed Under:
Bash
There are no attachments for this article.
Related Articles
O’Reilly’s CD bookshelf
Viewed 11286 times since Wed, Jun 27, 2018
perl podstawy
Viewed 1772 times since Mon, May 21, 2018
10 Awk Tips, Tricks and Pitfalls
Viewed 5676 times since Wed, Aug 19, 2020
Epoch & Unix Timestamp Conversion Tools
Viewed 45368 times since Fri, Jun 22, 2018
Time conversion using Bash
Viewed 2404 times since Fri, May 25, 2018