Posted by: Anonymous Coward
on December 12, 2005 09:44 PM
If you pass the <tt>-h</tt> parameter to <tt>du</tt>, beware that you may get funky results when then passed to <tt>sort -n</tt>, as the sort order can get biffed up. <tt>sort -n</tt> isn't smart enough to understand the "human" prefixes, so sort will deem 1G < 3M < 10k which is quite the opposite of reality.
Beware using "-h" with "du" and passing to "sort"
Posted by: Anonymous Coward on December 12, 2005 09:44 PMIf you pass the <tt>-h</tt> parameter to <tt>du</tt>, beware that you may get funky results when then passed to <tt>sort -n</tt>, as the sort order can get biffed up. <tt>sort -n</tt> isn't smart enough to understand the "human" prefixes, so sort will deem 1G < 3M < 10k which is quite the opposite of reality.
-gumnos
#