5 releases
0.1.4 | Jul 6, 2022 |
---|---|
0.1.3 | Jul 2, 2022 |
0.1.2 | Jul 1, 2022 |
0.1.1 | Jun 25, 2022 |
0.1.0 | Jun 24, 2022 |
#19 in #second
38 downloads per month
8KB
167 lines
lsamp
Sample stdin at a fixed rate.
For when you have a high volume source (e.g. live application logs) but you just want the gist.
Installation
cargo install lsamp
Examples
# Print 1 line every second
... | lsamp
# Print 10 lines every second
... | lsamp --rate 10
# Print 3 lines every 800 milliseconds
... | lsamp -r 3 --period 800ms