9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] p9p sed vs linux sed
Date: Fri, 14 Aug 2015 19:27:13 -0700	[thread overview]
Message-ID: <5a583f4f2eee248b3c22bc254d0feba3@brasstown.quanstro.net> (raw)
In-Reply-To: <CAJ1xhMX7DF0eS0vaWT0WAYd94cEGFM8Y=nsxd6Wgps6F+yMZcw@mail.gmail.com>

i think the change doesn't work for any multi-line file:

; cp /sys/src/cmd/sed.c /tmp/notsed.c
; cd /tmp
; ed notsed.c
; ed notsed.c
27827
putline(Biobuf *bp, Rune *buf, int n)
+4
	ebputc(bp, '\n');
d
w
27808
q
; tmk notsed.c
6c -FVTw notsed.c
6l -o 6.notsed notsed.6
; ; {echo a ; echo b} | 6.notsed 's/./.☺/g'
.☺.☺; 

- erik



      reply	other threads:[~2015-08-15  2:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12  7:39 Rudolf Sykora
2015-08-12  7:48 ` Ingo Krabbe
2015-08-12  7:57   ` Rudolf Sykora
2015-08-12  8:13     ` tlaronde
2015-08-12  8:23       ` Rudolf Sykora
2015-08-12 11:35       ` Ingo Krabbe
2015-08-12 12:39         ` Rudolf Sykora
2015-08-12 13:47           ` lucio
2015-08-12 14:22             ` Rudolf Sykora
2015-08-12 14:29               ` Ingo Krabbe
2015-08-12  7:58   ` Ingo Krabbe
2015-08-14 14:59 ` Alexander Kapshuk
2015-08-15  2:27   ` erik quanstrom [this message]

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=5a583f4f2eee248b3c22bc254d0feba3@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --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).