https://github.com/casey/edmunge
❓ Use ed to munge your files
https://github.com/casey/edmunge
Last synced: 8 months ago
JSON representation
❓ Use ed to munge your files
- Host: GitHub
- URL: https://github.com/casey/edmunge
- Owner: casey
- Created: 2018-05-22T19:01:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-16T09:07:59.000Z (over 2 years ago)
- Last Synced: 2025-02-06T20:46:04.449Z (over 1 year ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `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:
```shell
$ 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
```shell
$ cargo install edmunge
```
## inspiration
`edmunge` was inspired by Julia Evan's [blog post on batch-editing files with ed](https://jvns.ca/blog/2018/05/11/batch-editing-files-with-ed/) and funded thanks to a generous grant from [the RAND Corporation](https://www.rand.org/).
To improve your ed skills, I recommend the delightful [Ed Mastery](https://www.michaelwlucas.com/tools/ed) by Michael W. Lucas.