Thomas Guettler wrote:
> Pádraig Brady schrieb:
>> Thomas Guettler wrote:
>>
>>> Hi,
>>>
>>> I use "du -ax / | sort -rn > /var/tmp/du-`date --iso`" to get the sorted
>>> total size of all
>>> files and directories.
>>>
>>> Unfortunately you can't see a difference between a directory and a file
>>> in the output. It would be nice if the directories would be added by a
>>> slash.
>>>
> Thank you for being interested. I wrote a patch which makes the slash
> optional:
>
> src/du --help:
> ...
> -z, --dir-with-slash append a slash to directories.
I don't think it's worth an option TBH.
How about we do this iff POSIXLY_CORRECT environment variable is not set?
Pádraig.