Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hymkor/sponge

sponge clone for Windows (Original: https://joeyh.name/code/moreutils/)
https://github.com/hymkor/sponge

cui executable golang pipeline tool

Last synced: 4 months ago
JSON representation

sponge clone for Windows (Original: https://joeyh.name/code/moreutils/)

Awesome Lists containing this project

README

        

sponge (clone)
==============

soak up standard input and write to a file.
([original version](https://joeyh.name/code/moreutils/),
[my Rust version](https://github.com/hymkor/sponge-rs))

```
$ cat foo.txt
a
b
c
d
$ cat -n foo.txt | sponge foo.txt
$ cat foo.txt
1 a
2 b
3 c
4 d
```
(Japanese: 標準入力を全て読み取ってから、その内容を引数のファイルに出力します)

Install
-------

Download the binary package from [Releases](https://github.com/hymkor/sponge/releases) and extract the executable.

### Use "go install"

```
go install github.com/hymkor/sponge@latest
```

### Use "scoop-installer"

```
scoop install https://raw.githubusercontent.com/hymkor/sponge/master/sponge.json
```

or

```
scoop bucket add hymkor https://github.com/hymkor/scoop-bucket
scoop install sponge
```

Usage
-----

`sponge {options} {FILENAME(s)...}`

+ `-b string`
+ Postfix for backup of original files
+ `-v`
+ Output log to the standard error
+ `-h`
+ Show this help

---

[Release Note(English)](./release_note_en.md)
[Release Note(Japanese)](./release_note_ja.md)