-----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?

> But it would be much easier, if du had some sorting functionalities.

Rather, it IS much easier by using du's nul-termination functionality,
coupled with sort's nul-termination and human-size sorting.  Use each tool
for what it is good at.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAks8nbcACgkQ84KuGfSFAYDlgACgw0pEnqORZyCR51Lnk13bCrGm
VxEAn2eK5wZ/etcchnghx6OqCgH98UWt
=w2Bj
-----END PGP SIGNATURE-----



-- 
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