This is a card in Dave's Virtual Box of Cards.
A Better sed?
Page created: 2023-06-07Back to mushrat or over to better-awk
The terse one-letter commands are perfect for quick CLI input.
I love everything about sed
except the part where you go even the slightest
bit beyond the simplest basics and then the floor drops out from under you and
you’re falling into an abyss and now you are going to die.I still have no idea
what the "hold space" and "pattern space" are for or how to use the branch
instruction. Part of that is a documentation problem.
I’ll get over that whenever I sed-port, but until then…
I want a discoverable sed that ramps up gradually from obvious and tiny uses (find/replace) to more complicated edits, to complete scripts with (a certain amount of) logic.