This is a card in Dave's Virtual Box of Cards.

Mushrat

Page created: 2022-04-05
Updated: 2026-05-07

I’ve got this idea going around in my head about a command line utility that is part text editor, part programming language.

As

Before creating this, I plan to write a port of sed as a learning exercise.

"Mushrat"???

I’m calling it "Mushrat" after the way a character says "muskrat" in SWAMP CAT by Jim Kjelgaard (archive.org), a book I read as a child. It shortens to mr and I don’t see any other super popular CLI tools with that initialism. And the "rat" part is evocative of my "ratfactor" domain and handle.

TODO: a funny drawing of a muskrat

TODO: links I’ve gathered so far (Firefox: Projects > Mushrat!) (split across the mushrat topic pages above?)

TODO: move notes here from my "better-sed" page on ratf (not linking here so search engines don’t pick up on it resulting in an "Uncool URL" when I remove it!)

sample data

How do i show interesting or useful preview samples of the code working interactively on a user’s own data?

Well, I watched a presentation that showed to how to surface exceptional data. You basically run a "simulation" with each element removed to see if it makes a big different.

Basically, show the most "different" output rows from the sample versus the previous run?

summarize the diff between runs?

examples

A fantasy mushrat-to-unix (coreutils and/or shell) one-liners comparison would help me flesh out the desired functionality. so find some good one-liner references