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
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
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 would be
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
other
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
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
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