Re: [Exim] stripping comments from exim.conf?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Dan Egli
Ημερομηνία:  
Προς: Doug Sampson
Υ/ο: 'exim-users@exim.org'
Αντικείμενο: Re: [Exim] stripping comments from exim.conf?
Doug Sampson wrote:

> I'm looking for a way to strip comments from an exim.conf file in order to
> reduce its size prior to posting to a list for review. Is there a command
> that does this? Am running Exim 3.35.
>



Not really hard:

grep -v ^" "*# /etc/exim/exim.conf > exim.conf.nocomments

will convert any line that has a # as the first non-whitespace character
to a blank line.


--
-- Dan