hru(1) – human-readable units #33

Closed
opened 2024-01-23 22:07:21 +00:00 by emma · 2 comments
Owner

This is a tool I’m working on that works like the non-POSIX -h option in GNU ls(1):

       -h, --human-readable
              with -l and -s, print sizes like 1K 234M 2G etc.

This tool will take a number into stdin and output the number truncated to the highest possible unit.

This is a tool I’m working on that works like the non-POSIX `-h` option in GNU `ls(1)`: ``` -h, --human-readable with -l and -s, print sizes like 1K 234M 2G etc. ``` This tool will take a number into stdin and output the number truncated to the highest possible unit.
emma added the
enhancement
label 2024-01-23 22:07:21 +00:00
emma self-assigned this 2024-01-23 22:07:21 +00:00
Owner

I'd like an option to set the maximum unit to use. Maybe the minimum too.

I'd like an option to set the maximum unit to use. Maybe the minimum too.
Author
Owner

I'd like an option to set the maximum unit to use. Maybe the minimum too.

I feel like that’s outside the scope of this program. It’s not a general-purpose unit converter but a human-readable unit presenter. I’ve opened #53 for a program like that.

> I'd like an option to set the maximum unit to use. Maybe the minimum too. I feel like that’s outside the scope of this program. It’s not a general-purpose unit converter but a human-readable unit *presenter*. I’ve opened #53 for a program like that.
emma closed this issue 2024-02-24 05:16:49 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: bonsai/coreutils#33
No description provided.