Return to Snippet

Revision: 5142
at February 13, 2008 23:31 by amosshapira


Initial Code
sed -e '/^[ \t]*#/d' -e '/^$/d'

Initial URL

                                

Initial Description
The following snippet will remove lines beginning with '#' (ignoring white space before the '#') and empty line. This helps viewing and comparing configuration files full of comments.

Initial Title
Remove comment and empty lines from config files

Initial Tags

                                

Initial Language
Other