Crates.io | slowcat |
lib.rs | slowcat |
version | 1.0.0 |
source | src |
created_at | 2023-12-20 21:08:17.975313 |
updated_at | 2023-12-20 21:08:17.975313 |
description | Prints the contents of files with a specified delay between each line. |
homepage | https://github.com/lquenti/slowcat |
repository | https://github.com/lquenti/slowcat |
max_upload_size | |
id | 1075908 |
size | 22,334 |
Prints the contents of files with a specified delay between each line.
I wanted to get a feel for my benchmarks, so I wrote for file in *.txt; do cat $file; sleep 0.2; done
.
This only works when the files are smaller than the screen, which at some point they weren't anymore. So I want a way to go through files just slow enough so that I can spot any anomalies and error stack traces.
cargo install slowcat
# default to -n 0.2 (0.2sec per line)
slowcat -n 0.05
https://github.com/mreishus/slowcat if you want to get every character out slow.