From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Paul Lalonde Date: Fri, 26 May 2017 14:27:07 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="94eb2c191e047d460805506e22fc" Subject: Re: [9fans] Acme Edit to remove lines Topicbox-Message-UUID: be81683e-ead9-11e9-9d60-3106f5b1d025 --94eb2c191e047d460805506e22fc Content-Type: text/plain; charset="UTF-8" x/^X.*\n/d Or x/^X/+-d Away from a terminal so probably subtly wrong. On Fri, May 26, 2017 at 7:23 AM dexen deVries wrote: > given multi-line dot, spanning only part of a file, how do i construct > an Edit command to remove lines matching certain regular expression? > > wanted to delete lines starting with one particular character; without > leaving an empty line behind, thus Edit s/X.+//d is not sufficient. > > --94eb2c191e047d460805506e22fc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable x/^X.*\n/d
Or
x/^X/+-d

Away from a terminal so probably subtly= wrong.
On Fri, May 26, 2017= at 7:23 AM dexen deVries <de= xen.devries@gmail.com> wrote: