ls -S (that's a capital S) will sort by file size so, ls -1lSh or something.
On Wed, Jun 10, 2009 at 9:15 PM, skyspace <[email protected]> wrote: > > How I can sort data by size displayed in human readable form? > > For example: > > I can do ls -1sh | sort -n but that mixes the 'K' and the 'M's. > > I can do ls -1s | sort -n but that is not in human readable format. > > Thanks, > skyspace. > > > > > > -- Daniel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup -~----------~----~----~----~------~----~------~--~---
