tag 9187 notabug
thanks
On 07/27/2011 08:06 PM, Hugh Esco wrote:
perhaps I just need to learn the right switches to apply to sort on the
other side of a pipe, but I have often wanted to sort the results of du
in descending order and have it get it how to parse the -s(ummary) -h
(uman) readable o
perhaps I just need to learn the right switches to apply to sort on the
other side of a pipe, but I have often wanted to sort the results of du
in descending order and have it get it how to parse the -s(ummary) -h
(uman) readable output.
So instead of:
$ du -sh /var/log/*
28K /var/log/apt
Nicholas Leippe <[EMAIL PROTECTED]> wrote:
> On Tuesday 07 October 2008 05:58:19 am you wrote:
>> Nicholas Leippe <[EMAIL PROTECTED]> wrote:
>> > Currently, du -x properly excludes other filesystems that are mounted.
>> > But if the same filesystem is mounted again with -o bind (linux,
> possibly
Nicholas Leippe <[EMAIL PROTECTED]> wrote:
> Currently, du -x properly excludes other filesystems that are mounted.
> But if the same filesystem is mounted again with -o bind (linux, possibly
> other oses), it still includes them in the count.
>
> An option to exclude them from the count as well wo
Currently, du -x properly excludes other filesystems that are mounted.
But if the same filesystem is mounted again with -o bind (linux, possibly
other oses), it still includes them in the count.
An option to exclude them from the count as well would be convenient.
___
Logan Hansen wrote:
'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
'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
outpu
> 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?
Because it is useful. As ano
Maybe you should read up on the de-facto UNIX philosophy in
documents such as http://www.faqs.org/docs/artu/ch01s06.html
GNU's Not UNIX.
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils
Logan Hansen wrote:
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
How about adding a gui to du?
Maybe you should read up on the de-facto UNIX philosophy
in documents such as http://www.
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
Logan Hansen wrote:
> 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
Yes I can definitely see the need for that.
However what you need is quite easily achieved with existing tools.
-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 ca
Logan Hansen wrote:
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
option to sort by size... wow, that would be really nice.
So nice I wrote this script to do it...
du -B 1 "$@" | awk '{printf
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
Thanks,
Logan Hansen
Linux Systems Admin
Adams State College
___
Bug-coreutils mailing list
Bu
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
16 matches
Mail list logo