bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: du feature request


From: Matthew Woehlke
Subject: Re: du feature request
Date: Fri, 20 Oct 2006 14:01:01 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0

Eric Blake wrote:
According to Logan Hansen on 10/19/2006 12:10 PM:
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?

Well, did you look at how complicated doing this otherwise is? It isn't *terrible*, but it isn't a matter of just 'du <options> | sort', either. (Although, alternatively, maybe it *should* be, i.e. sort should be able to sort "human-readable file sizes".)

Why does 'ls' have options to sort the output? What does having sorting options in 'ls' achieve that can't already be done by pipelining ls output into sort? ;-)

--
Matthew
When on POSIX, do as POSIX mandates.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]