https://github.com/pixelcmtd/-i
a generic in-place mutation glue
https://github.com/pixelcmtd/-i
Last synced: 3 months ago
JSON representation
a generic in-place mutation glue
- Host: GitHub
- URL: https://github.com/pixelcmtd/-i
- Owner: pixelcmtd
- License: gpl-2.0
- Created: 2022-08-20T00:20:42.000Z (almost 4 years ago)
- Default Branch: daddy
- Last Pushed: 2022-08-20T17:39:40.000Z (almost 4 years ago)
- Last Synced: 2025-12-25T23:25:55.443Z (7 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `-i`
Have you ever tried to do something like `program < $file > $file`? Then you
know the pain. This tool tries to solve that problem by both providing the nicer
and “[dry](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)” syntax
`-i $file program` and making it actually work without ruining your file.
In addition, this tool should be useful as a replacement for
implementation-specific in-place flags. For example, write a script on FreeBSD
or Darwin/macOS using `sed` to mutate a file in-place. Now try running it on a
GNU system, or vice versa.