Hello, I would like to suggest an option to rsync that makes it output sizes in human readable units, instead of always using bytes. So Total file size: 30864401502 bytes would be output as: Total file size: 28.7 GiB Similarly for mebibytes and kibibytes. If there's already such an option, then I'm sorry -- I didn't find it in the manual pages. -- Martin Geisler GnuPG Key: 0x7E45DD38 PHP Exif Library | PHP Weather | PHP Shell http://pel.sf.net/ | http://phpweather.net/ | http://mgeisler.net/ Read/write Exif data | Show current weather | A shell in a browser -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20051106/a3b9a120/attachment.bin
I vote for this feature. In du and df commands, this is invoked with: -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) --si likewise, but use powers of 1000 not 1024 Currently, in rsync, -h is the short form of --help. Cheers, Manuel. Martin Geisler wrote:> Hello, > > I would like to suggest an option to rsync that makes it output sizes > in human readable units, instead of always using bytes. So > > Total file size: 30864401502 bytes > > would be output as: > > Total file size: 28.7 GiB > > Similarly for mebibytes and kibibytes. > > If there's already such an option, then I'm sorry -- I didn't find it > in the manual pages. > >______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, m?s seguridad http://correo.yahoo.es
Hi, On Sun, 6 Nov 2005, Manuel L?pez-Ib??ez wrote:> I vote for this feature. In du and df commands, this is invoked with: > -h, --human-readable > print sizes in human readable format (e.g., 1K 234M 2G) > > --si likewise, but use powers of 1000 not 1024 > > Currently, in rsync, -h is the short form of --help.I guess some spaces in the output number would be sufficient and best. Cheers -e -- Eberhard Moenkeberg (emoenke@gwdg.de, em@kki.org)
Manuel L?pez-Ib??ez <manuellopezibanez@yahoo.es> writes:> I vote for this feature. In du and df commands, this is invoked with: > -h, --human-readable > print sizes in human readable format (e.g., 1K 234M 2G) > > --si likewise, but use powers of 1000 not 1024Exactly, it is from those commands that I got the idea in the first place. -- Martin Geisler GnuPG Key: 0x7E45DD38 PHP Exif Library | PHP Weather | PHP Shell http://pel.sf.net/ | http://phpweather.net/ | http://mgeisler.net/ Read/write Exif data | Show current weather | A shell in a browser -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20051106/f9945428/attachment.bin
On Sun, Nov 06, 2005 at 01:18:22AM +0100, Martin Geisler wrote:> I would like to suggest an option to rsync that makes it output sizes > in human readable units, instead of always using bytes.The CVS version now has the options --human-readable (-m) and --si to implement more human-reable output in the --stats and the end-of-run summary. Anyone wanting to be able to use -h instead of -m (to make the option more like du/df/ls) may define a popt alias in their ~/.popt file: rsync alias -h -m ..wayne..
Manuel L?pez-Ib??ez wrote...> I vote for this feature. In du and df commands, this is invoked with: > -h, --human-readable > print sizes in human readable format (e.g., 1K 234M 2G) > > --si likewise, but use powers of 1000 not 1024 > > Currently, in rsync, -h is the short form of --help.Please do not, I repeat, do not three terrible things the gnu folks did for ls, df etc: 1. Continue the prefix confusion which is using k, M, ... for 1024, 1024*1024 etc. Their meaning is defined to 1000, 1000*1000 ... If you really want to use the 2^(10*n) quantities, use the not-so-new-anymore non-ambiguous prefixes ki, Mi, Gi. 2. Show a bias against the SI system by dropping the short-hand notation -H (now --si) for it while not touching the confusing -h (which counts in powers of two). 3. Re-use parameter names. "du -H" greats me with | du: WARNING: use --si, not -H; the meaning of the -H option will soon | change to be the same as that of --dereference-args (-D) Christoph