Andre Gompel wrote: >Dear colleague: > it looks like a bug... or at least a short comming. > >If I use the -n or -g option I cannot sort according to the output format of >the "du" or "ls" commands. > >Example: > > du -chs * |sort -n |more > >I am not sure what would be the best approach, but I would tend to add one >more option (says -h for "human format" compatibility). > > I see what you mean, but that would definitely not be a stable sort as info is lost in the number -> human conversion. You really need to sort before the human conversion. Have a look at: http://www.pixelbeat.org/scripts/dutop
Pádraig. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
