human

convert bytes to human readable formats
git clone git://git.2f30.org/human
Log | Files | Refs | README | LICENSE

README (815B)


      1 human
      2 =====
      3 
      4 Human is a small program which outpus numbers into a human readable
      5 format. By default, it tries to detect the best factorisation, but you
      6 can force its output.
      7 
      8 Installation
      9 ------------
     10 The following commands would build and install the program just fine:
     11 
     12 	$ make
     13 	# make install
     14 
     15 Usage
     16 -----
     17 You can adjust the number of decimals with the `SCALE` environment
     18 variable.
     19 
     20     # convert 123456 to the best human factorisation
     21     human 123456
     22     121K
     23 
     24     # output 2 decimals
     25     SCALE=2 human 123456
     26     120.56K
     27 
     28     SCALE=3 human -m 123456
     29     0.118M
     30 
     31     # convert from a different factorization level
     32     SCALE=6 human -g 123M
     33     0.120117G
     34 
     35 Well, that's it (and that's enough !). For more informations, see the
     36 human(1) manpage.
     37 
     38 License
     39 -------
     40 See the LICENSE file provided with this software