Soak up all input from stdin and write it to a file or stdout
Go to file
Trevor Slocum 3511f8b01a Migrate to GitLab 2020-01-23 07:37:37 -08:00
.gitignore Initial commit 2019-06-17 21:39:33 -07:00
.gitlab-ci.yml Migrate to GitLab 2020-01-23 07:37:37 -08:00
LICENSE Relicense as MIT 2019-06-25 08:48:08 -07:00
README.md Migrate to GitLab 2020-01-23 07:37:37 -08:00
go.mod Migrate to GitLab 2020-01-23 07:37:37 -08:00
main.go Migrate to GitLab 2020-01-23 07:37:37 -08:00

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.