[Cialug] sed question

Todd Walton tdwalton at gmail.com
Mon Sep 26 13:33:46 UTC 2022


On Fri, Sep 23, 2022 at 11:46 AM Pix <cialug at kepibu.org> wrote:

> Which suggests maybe sed no likey the newline.  A bit of rummaging
> around `info sed` says commands are terminated by newlines, which would
> seem to confirm that:
>
> > Commands within a SCRIPT or SCRIPT-FILE can be separated by semicolons
> (';') or newlines (ASCII 10).
>
> Fortunately, documentation for the `s` command has some suggestions for
> how to deal with that:
>
> > To include a literal '\', '&', or newline in the final replacement, be
> sure to precede the desired '\', '&', or newline in the REPLACEMENT with
> a '\'.


Thank you, good sir or madam. That seems to have solved the problem. I
appreciate it!

--
Todd


More information about the Cialug mailing list