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