sponge/README.md

26 lines
891 B
Markdown
Raw Normal View History

2019-04-24 08:54:53 +00:00
# sponge
2020-01-23 15:37:37 +00:00
[![GoDoc](https://godoc.org/gitlab.com/tslocum/sponge?status.svg)](https://godoc.org/gitlab.com/tslocum/sponge)
[![CI status](https://gitlab.com/tslocum/sponge/badges/master/pipeline.svg)](https://gitlab.com/tslocum/sponge/commits/master)
2019-04-24 08:54:53 +00:00
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
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.
2020-01-28 23:55:02 +00:00
```grep [...] log.txt | sponge log.txt```
2019-04-24 08:54:53 +00:00
## Installation
2020-01-28 23:55:02 +00:00
```go get gitlab.com/tslocum/sponge```
2019-04-24 08:54:53 +00:00
## Usage
2020-01-28 23:55:02 +00:00
```sponge [-a] [file]: soak up all input from stdin and write it to [file] or stdout```
2019-04-24 08:54:53 +00:00
2019-11-16 12:36:21 +00:00
## Support
2020-01-28 23:55:02 +00:00
Please share issues and suggestions [here](https://gitlab.com/tslocum/sponge/issues).
2019-04-24 08:54:53 +00:00
## Credits
sponge was originally written in C by Tollef Fog Heen.