1 stable release
Uses old Rust 2015
1.0.0 | May 22, 2018 |
---|
#374 in Text editors
5KB
86 lines
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.
Dependencies
~4–14MB
~164K SLoC