Skip to content
/ sponge Public
forked from flinkstech/sponge

Soak up all input from stdin and write it to a file or stdout

License

Notifications You must be signed in to change notification settings

y0sua/sponge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sponge

This repository was forked from this repository

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

Or download the binary in the release page

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.

This Go port was initially written by Trevor Slocum

About

Soak up all input from stdin and write it to a file or stdout

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%