help-gnu-utils
[Top][All Lists]
Advanced

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

du | sort fails


From: Davin Pearson
Subject: du | sort fails
Date: Fri, 8 May 2009 22:01:58 -0700 (PDT)
User-agent: G2/1.0

I would like to sort the output of du using the sort command.  But
this fails:

du <dir> | sort

because du prints the sizes out like this:

123
12
1

rather than this: (prefixing with spaces)

123
 12
  1

Which would work.


reply via email to

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