[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: programs
From: |
Juhapekka Tolvanen |
Subject: |
Re: programs |
Date: |
Fri, 1 Jan 2010 20:17:28 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Thu, 31 Dec 2009, +14:51:44 EET (UTC +0200),
Eric Blake <address@hidden> 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."
- Re: programs,
Juhapekka Tolvanen <=