'sort'ing by name isn't a big deal. 'sort'ing by size, however doesn't
work well do to du's rounding of sizes: du -m and compare a file that's 1k
vs 900k. Further, du -h is quite nice, however, 'sort' can't do *anything*
with the results. Rather than having to write a program to parse du -k's
output, sort it, and then make it 'human readable', this would work *much*
better as a builtin option.

Logan

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> According to Logan Hansen on 10/19/2006 12:10 PM:
>> Sirs,
>>
>> I would like to request a feature to be added to the 'du' command:
>>
>> a command line switch to sort output by directory name or by size of
>> directory
>
> Why?  What can we add to du that can't already be done by pipelining du
> output into sort?
>
> This FAQ explains the philosophy of the coreutils:
> http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Why-don_0027t-the-utilities-have-built-in-directory-recursion_003f
>
> - --
> Life is short - so eat dessert first!
>
> Eric Blake             [EMAIL PROTECTED]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (Cygwin)
> Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFOB9W84KuGfSFAYARAo5QAKC8WtjJHtMAbhqM5/9lWk4uMejuOwCcDbIc
> e1hlGX3EUesWdTZVPdGdeLw=
> =8tOJ
> -----END PGP SIGNATURE-----
>
>




_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to