Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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/)
- Host: GitHub
- URL: https://github.com/hymkor/sponge
- Owner: hymkor
- License: mit
- Created: 2016-03-22T00:14:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T12:04:48.000Z (11 months ago)
- Last Synced: 2024-06-21T20:05:25.033Z (8 months ago)
- Topics: cui, executable, golang, pipeline, tool
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)