bytesize icon indicating copy to clipboard operation
bytesize copied to clipboard

sort -h friendly output mode

Open wookietreiber opened this issue 7 years ago • 0 comments

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.

wookietreiber avatar Sep 05 '18 20:09 wookietreiber