coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Command-line program to convert 'human' sizes?


From: Assaf Gordon
Subject: Command-line program to convert 'human' sizes?
Date: Tue, 04 Dec 2012 11:25:19 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4

Hello,

Is there a command-line program (or a recommended way) to expose the coreutil's 
common functionality of converting raw sizes to 'human' sizes and vice versa ?

I'm referring to the "-h" parameter that du/df/sort are accepting, and 
reporting "human" sizes, but also the reverse (where sort's "-G" accepts "40M" 
as valid input).

I found two relevant threads, but no resolution:
http://lists.gnu.org/archive/html/coreutils/2011-08/msg00035.html
http://lists.gnu.org/archive/html/coreutils/2012-02/msg00088.html

Thanks,
 -gordon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]