hsize
Command line tool for human readable size
Installation
go install github.com/gonejack/hsize@latest
Usage
by arguments
> hsize 123 383764
123B
374.76KB
by stdin
> echo 19129219219129119 | hsize
16.99PB
Options
-p precision
> hsize 1025
1KB
> hsize -p 5 1025
1.00097KB