[Novalug] need grep help

Kevin Cole dc.loco at gmail.com
Thu Mar 15 19:53:52 EDT 2012


On Thu, Mar 15, 2012 at 19:44, Jay Hart <jhart at kevla.org> wrote:

I like to search config files with the comment lines removed...
>

What I'm really looking for is a grep that will remove all comment lines, or
> lines that are blank.
>

Been there, done that.  So often in fact that I add this alias to my
.bash_aliases wherever I go:

alias decomment='egrep -v "^[[:space:]]*(#.*)?$" '
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20120315/55220bfc/attachment.html 


More information about the Novalug mailing list