edmunge 1.0.0

❓ Use the classic unix text editor as a scripting language
edmunge-1.0.0 is not a library.

edmunge

Good news everybody! You can finally use your favorite inscrutable text editor as a scripting language!

edmunge is a recursive acronym that stands for Edmunge Mashes Until No Good, with Ed.

Briefly, edmunge lets you destructively edit text files using scripts filled with ed commands. What could go wrong?

For example:

$ cat document
My sweet document!
$ cat script.ed
#!/usr/bin/env edmunge
,s/!/?/
w
$ ./script.ed document
19
19
$ cat document
My sweet document?

installation

$ cargo install edmunge

inspiration

edmunge was inspired by Julia Evan's blog post on batch-editing files with ed and developed thanks to a generous grant from the RAND Corporation.

To improve your ed skills, I recommend the delightful Ed Mastery by Michael W. Lucas.