bytesize
bytesize copied to clipboard
sort -h friendly output mode
As someone who writes command line apps and likes pipes, I would like to have a sort -h friendly output, as in:
$ my-rust-app
5.5G foo
2.6G bar
16G baz
$ my-rust-app | sort -hk1
2.6G bar
5.5G foo
16G baz
This should work with both SI and IEC.