https://github.com/bruth/stream-split
split(1) but streams each chunk to the provided command.
https://github.com/bruth/stream-split
Last synced: about 1 year ago
JSON representation
split(1) but streams each chunk to the provided command.
- Host: GitHub
- URL: https://github.com/bruth/stream-split
- Owner: bruth
- Created: 2019-01-19T21:43:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-19T21:44:06.000Z (over 7 years ago)
- Last Synced: 2025-02-14T10:56:03.021Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stream Split
[`split`](http://man7.org/linux/man-pages/man1/split.1.html) but streams each chunk to the provided command.
```
stream-split -lines 500 data.txt -- wc -l
```
This will split up `data.txt` into 500 line chunks and execute `wc -l` for each chunk.