Geert Stappers:
> 
> Hi,
> 
> In postfix configuration files we have
> 
> #
> keyword = value
> keyword2 = some value
> keyword3 =  multi physical line
>   single logical line
> keyword4 = also
>    multi line
>    stil keyword4
> keyword5 = foo
> #
> 
> I want to remove keyword4 with sed(1).

Why not use existing functionality:

    # postconf -X keyword4

That will remove the entire multiline entry.

postconf 2.11 and later also allow access to individual master.cf
fields (postconf -F, postconf -P).

        Wietse

Reply via email to