Crates.io | lsamp |
lib.rs | lsamp |
version | 0.1.4 |
source | src |
created_at | 2022-06-24 15:28:27.657575 |
updated_at | 2022-07-06 15:09:15.660279 |
description | Sample stdin at a fixed rate |
homepage | |
repository | |
max_upload_size | |
id | 612451 |
size | 10,375 |
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.
cargo install lsamp
# 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