https://github.com/shmokmt/sponge-go
Pure Go implementation of the sponge(1) in moreutils
https://github.com/shmokmt/sponge-go
devops go moreutils sponge text-utility
Last synced: 7 months ago
JSON representation
Pure Go implementation of the sponge(1) in moreutils
- Host: GitHub
- URL: https://github.com/shmokmt/sponge-go
- Owner: shmokmt
- License: mit
- Created: 2025-01-01T07:16:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-08T14:05:14.000Z (9 months ago)
- Last Synced: 2025-10-10T18:37:57.749Z (8 months ago)
- Topics: devops, go, moreutils, sponge, text-utility
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sponge-go
Pure Go implementation of sponge(1) in moreutils.
> [!WARNING]
> The buffer size and signal handling are roughly implemented. However, In most cases you don't need to worry.
# Usage
```
sponge [-a] : soak up all input from stdin and write it to
```
```
sed '...' file | grep '...' | sponge [-a] file
```
# References
* [moreutils](https://joeyh.name/code/moreutils/)
* [sponge(1) — moreutils — Debian testing — Debian Manpages](https://manpages.debian.org/testing/moreutils/sponge.1.en.html)
* [moreutils/sponge.c at master · stigtsp/moreutils · GitHub](https://github.com/stigtsp/moreutils/blob/master/sponge.c)
* [Redirections (Bash Reference Manual)](https://www.gnu.org/software/bash/manual/html_node/Redirections.html)