Skip to content

sort -h friendly output modeΒ #14

@wookietreiber

Description

@wookietreiber

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions