9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] acme/sam language question
Date: Wed, 30 Oct 2013 08:47:49 +0100	[thread overview]
Message-ID: <CAOEdRO1m07V9jAXiYt62JdLHVaKd+D-yQ7jKRpQRtz0bxaRXcQ@mail.gmail.com> (raw)
In-Reply-To: <526FE8DB.5040709@gmx.de>

On 29 October 2013 17:56, Friedrich Psiorz <f.psiorz@gmx.de> wrote:
> this should do the trick
>
> /A/+#0;/B/-#0
> g/CC/ s/CC/DD/g
> p

Thanks for the suggestion, the g construct didn't come to my mind.
However, it doesn't work for me: again, if CC is there, it works;
if it's not, then the final dot only contains the match for the /A/ instead
of the whole stretch from A to B.

Ruda



  reply	other threads:[~2013-10-30  7:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-29 15:31 Rudolf Sykora
2013-10-29 16:56 ` Friedrich Psiorz
2013-10-30  7:47   ` Rudolf Sykora [this message]
2013-10-31 15:21     ` Rudolf Sykora
2013-10-31 15:49       ` Friedrich Psiorz
2013-10-31 19:24         ` Rudolf Sykora
2013-11-06 18:47           ` Rudolf Sykora
2013-11-06 20:26             ` Micah Stetson
2013-11-06 20:42             ` Mark van Atten
2013-11-21 13:28               ` Rudolf Sykora
2013-11-21 14:52                 ` Mark van Atten

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=CAOEdRO1m07V9jAXiYt62JdLHVaKd+D-yQ7jKRpQRtz0bxaRXcQ@mail.gmail.com \
    --to=rudolf.sykora@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).