On Thu, 31 Dec 2009, +14:51:44 EET (UTC +0200),
Eric Blake <e...@byu.net> pressed some keys:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> According to Juhapekka Tolvanen on 12/30/2009 4:35 PM:
> > I wanted to do this: Give sizes of each files and directories located
> > in $PWD in human-readable-format AND sort output according to sizes of
> > those files and directories.
> 
> What's wrong with:
> 
> du -sh0 * | sort -hz | tr '\0' '\n'
> 
> besides needing coreutils 7.5 or newer?

What if size of one directory is rounded UP to 1M and size of other
directory is rounded DOWN to 1M? How sort-command can know know, which
one is bigger? I am sure, that sorting must be done according to size
in bytes, not according to size of human-readable units.


-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"Quidquid Latine dictum sit altum videtur."



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to