https://github.com/riptl/eat
A hungry tac(1)
https://github.com/riptl/eat
Last synced: about 1 year ago
JSON representation
A hungry tac(1)
- Host: GitHub
- URL: https://github.com/riptl/eat
- Owner: riptl
- Created: 2019-11-29T00:31:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-29T00:32:11.000Z (over 6 years ago)
- Last Synced: 2025-02-24T18:06:55.368Z (about 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `eat`: A hungry [tac](https://linux.die.net/man/1/tac)
Reads a file backwards line-by-line and continually truncates it.
Does a million lines/s or 200 MB/s on my laptop.
**Why?** It's a poor man's job queue!
```
~ $ wc -l lines
72236934 lines
~ $ eat -n2236934 lines | wc -l
2236934
~ $ wc -l lines
70000000 lines
```
Appending to the file while running `eat` is undefined behavior!