RE: [SLUG] Apache is driving me nuts

From: Ben Ostrowsky (ostrowb@tblc.org)
Date: Wed Dec 07 2005 - 14:18:49 EST


OK, I'm using this command:

grep -v '^[[:blank:]]#' /etc/httpd/conf/httpd.conf | sed
's/^\(.*\)[[:blank:]]*#.*$/\1/' | grep -v ^$

And that seems to be almost what I want -- now is there a way to re-tab it
to show nested stuff, like this?

Input:

<VirtualHost>
<Directory>
</Directory>
</VirtualHost>

Output:

<VirtualHost>
        <Directory>
        </Directory>
</VirtualHost>

Ben

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:17:27 EDT