Soak up all input from stdin and write it to a file or stdout
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trevor Slocum 2995123d16 Renew LICENSE 1 year ago
.gitignore Initial commit 2 years ago
.gitlab-ci.yml Update CI script 1 year ago
LICENSE Renew LICENSE 1 year ago
README.md Update CI script 1 year ago
go.mod Migrate to GitLab 1 year ago
main.go Migrate to GitLab 1 year ago

README.md

sponge

GoDoc CI status Donate

Soaks up all input from stdin and writes it to a file or stdout. Pipelines reading from and writing to the same file may be safely constructed.

grep [...] log.txt | sponge log.txt

Installation

go get gitlab.com/tslocum/sponge

Usage

sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout

Support

Please share issues and suggestions here.

Credits

sponge was originally written in C by Tollef Fog Heen.