[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature Request: du --dir-with-slash
From: |
Thomas Guettler |
Subject: |
Re: Feature Request: du --dir-with-slash |
Date: |
Mon, 10 Mar 2008 12:00:18 +0100 |
User-agent: |
Thunderbird 2.0.0.9 (X11/20070801) |
>> I'm very dubious about adding this as an option.
>> Do you really think an option is warranted for this,
>> considering you can already get the desired behavior
>> with a small wrapper, as I demonstrated:
>>
>
> The wrapper is awkward, but it's better than a new option.
>
> So probably best to do nothing here as you suggest.
>
>
I know that it easy to use the 'du -a' and pipe the output to a
check if it is a directory. But if you have a lot of files, it
really matters if you touch a files twice.
And this solution does not count the size of directories.
find / -xdev -printf "%k\t%p%y\n" |
sed 's/d$/\//;t; s/.$//;' |
LC_ALL=C sort -rn -k1,1
I agree that a single letter option is maybe not needed, but a
--dir-with-slash would be good.
Thomas
--
Thomas Güttler, http://www.tbz-pariv.de/
Bernsdorfer Str. 210-212, 09126 Chemnitz, Tel.: 0371/5347-917
TBZ-PARIV GmbH Geschäftsführer: Dr. Reiner Wohlgemuth
Sitz der Gesellschaft: Chemnitz Registergericht: Chemnitz HRB 8543
- Re: Feature Request: du --dir-with-slash, (continued)
- Re: Feature Request: du --dir-with-slash, Pádraig Brady, 2008/03/06
- Re: Feature Request: du --dir-with-slash, Pádraig Brady, 2008/03/07
- Re: Feature Request: du --dir-with-slash, Thomas Guettler, 2008/03/10
- Re: Feature Request: du --dir-with-slash, Pádraig Brady, 2008/03/10
- Re: Feature Request: du --dir-with-slash, Jim Meyering, 2008/03/10
- Re: Feature Request: du --dir-with-slash, Pádraig Brady, 2008/03/10
- Re: Feature Request: du --dir-with-slash,
Thomas Guettler <=
- Re: Feature Request: du --dir-with-slash, Pádraig Brady, 2008/03/10
- Re: Feature Request: du --dir-with-slash, Pádraig Brady, 2008/03/10
- Re: Feature Request: du --dir-with-slash, Jim Meyering, 2008/03/10
- Re: Feature Request: du --dir-with-slash, Thomas Guettler, 2008/03/12