Remix.run Logo
jacobvosmaer 8 hours ago

I like ed but I prefer 'sam -d' (the terminal mode of Sam). It has a nice looping construct 'x' and you can open multiple files and do batch edits (with 'X').

There is a Go port of Sam, which is easy to install:

go install 9fans.net/go/cmd/sam@latest

http://sam.cat-v.org/

marttt 3 hours ago | parent [-]

+1, structural regular expressions are a joy to use.

https://doc.cat-v.org/bell_labs/sam_lang_tutorial/sam_tut.pd...

Also interesting, with other derivates of ed -- LineEditorFamily in the TextEditors Wiki: https://texteditors.org/cgi-bin/wiki.pl?LineEditorFamily