Posted By

amosshapira on 02/13/08


sed config admin one-liner

Versions (?)

Remove comment and empty lines from config files

 / Published in: Other

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.

  1. sed -e '/^[ \t]*#/d' -e '/^$/d'

Report this snippet  

You need to login to post a comment.