From: dexen deVries <dexen.devries@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] Acme Edit to remove lines
Date: Fri, 26 May 2017 16:20:50 +0200 [thread overview]
Message-ID: <CAJUT6o4aBzB8ad51c3wAmitOHoo70nkzoJQX=voLjN1ixyLzCw@mail.gmail.com> (raw)
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.
next reply other threads:[~2017-05-26 14:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-26 14:20 dexen deVries [this message]
2017-05-26 14:27 ` Paul Lalonde
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='CAJUT6o4aBzB8ad51c3wAmitOHoo70nkzoJQX=voLjN1ixyLzCw@mail.gmail.com' \
--to=dexen.devries@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).