bug-coreutils
[Top][All Lists]
Advanced

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

Feature Request: du --dir-with-slash


From: Thomas Guettler
Subject: Feature Request: du --dir-with-slash
Date: Thu, 06 Mar 2008 14:44:16 +0100
User-agent: Thunderbird 2.0.0.9 (X11/20070801)

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.

Example:

old:
307704984       /
291330280       /home

new:
307704984       /
291330280       /home/

This way you can see if a line is a directory or not. This is even more
important
if you want to use the output for a script.

I suggest 'du --dir-with-slash' or 'du --trailing-slash' as parameter.

 Thomas

-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de





reply via email to

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