Crates.io | len |
lib.rs | len |
version | 0.2.0 |
source | src |
created_at | 2019-11-03 10:16:22.830611 |
updated_at | 2021-12-16 23:43:35.387714 |
description | Command to print length of stdin in a human-friendly format |
homepage | https://github.com/robertknight/len |
repository | https://github.com/robertknight/len.git |
max_upload_size | |
id | 177723 |
size | 4,092 |
Command that reads stdin and prints its length in bytes, with human-friendly formatting if the output is a terminal.
Install Cargo, the package manager for the Rust programming language. Then run:
$ cargo install len
$ cat /usr/share/dict/words | len
2.4 MiB
len
will print its output in human-readable format if the output is a terminal,
or a plain number otherwise, in which case it is the same as using wc -c
.