9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Paul Lalonde <paul.a.lalonde@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Acme Edit to remove lines
Date: Fri, 26 May 2017 14:27:07 +0000	[thread overview]
Message-ID: <CA+POUVhjMX8wsQbzg2o7u=gKk-YvgFbrk4_9Z-O_9hMb6Gp5DQ@mail.gmail.com> (raw)
In-Reply-To: <CAJUT6o4aBzB8ad51c3wAmitOHoo70nkzoJQX=voLjN1ixyLzCw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

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 <dexen.devries@gmail.com>
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.
>
>

[-- Attachment #2: Type: text/html, Size: 699 bytes --]

  reply	other threads:[~2017-05-26 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-26 14:20 dexen deVries
2017-05-26 14:27 ` Paul Lalonde [this message]
2017-05-26 14:29 ` James A. Robinson
2017-05-26 15:07   ` dexen deVries
2017-05-26 16:33     ` Micah Stetson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+POUVhjMX8wsQbzg2o7u=gKk-YvgFbrk4_9Z-O_9hMb6Gp5DQ@mail.gmail.com' \
    --to=paul.a.lalonde@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).