bug-coreutils
[Top][All Lists]
Advanced

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

du feature request: '--total-only'


From: The Wanderer
Subject: du feature request: '--total-only'
Date: Sat, 19 Aug 2006 09:05:15 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922

The '-c' option tells du to print a grand total, after having printed
whatever else it is going to output.

The '-s' option tells du to print only a total for each path argument,
rather than recursively printing the total for each subdirectory of each
path argument which is a directory.

From time to time, I want to tell du to print *only* the grand total,
rather than flooding the terminal with dozens of recursion lines. There
does not appear to be any way to accomplish this short of piping the
output to 'tail -n 1'; I do not think that this workaround is
necessarily sufficient reason to refrain from at least requesting the
feature, because a similar workaround (albeit one with rather more
user-end overhead) could duplicate the function of '-s' using grep.

Is there any chance of seeing such an option in future versions of du?


(For the record, I haven't gone in and tried to code it myself because:
A) I'm not familiar with the code, B) experience has left me less than
confident in my ability to work cleanly with code I didn't write myself,
and C) it seems like a sufficiently non-trivial change to probably
require copyright paperwork - which I consider an unnecessarily
burdensome requirement, at least to a point I haven't seen reached yet.)

--
The Wanderer STILL finds the refusal to behave like a proper discussion forum offensive

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.




reply via email to

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