[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    Re: du feature request
From:       "Logan Hansen" <llhansen () adams ! edu>
Date:       2006-10-22 21:03:48
Message-ID: 1095.72.166.203.159.1161551028.squirrel () faculty ! adams ! edu
[Download RAW message or body]

'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             ebb9@byu.net
> -----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-----
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic