Crates.io | mathcli |
lib.rs | mathcli |
version | 0.1.2 |
source | src |
created_at | 2020-09-26 23:52:50.398908 |
updated_at | 2020-09-27 00:04:56.102354 |
description | Simple math for the cli |
homepage | |
repository | |
max_upload_size | |
id | 293274 |
size | 18,871 |
Have you ever been grapping logs, and gotten it down to a stream of numbers, and wished you could sum all those numbers? Now you can!
Alternatives are ugly: https://stackoverflow.com/questions/450799/shell-command-to-sum-integers-one-per-line
And this is simple!
$ printf '2\n3\n\n' | mathcli mul
$ 6
cargo install mathcli
Feel free to make a CR at https://github.com/michaelAlvarino/mathcli.