Re: Sorting directories by size

2015-02-28 Thread Chris Bannister
On Sat, Feb 28, 2015 at 01:15:42PM +0100, Petter Adsen wrote: > I want to do a "du -sh *" in a directory, and sort the directories by > sizes. The problem is that they are listed (since I use the "-h" > option) in human-readable format. Is there an easy way to do this, so > that 254G comes before 1

Re: Sorting directories by size

2015-02-28 Thread Ron
On Sat, 28 Feb 2015 13:15:42 +0100 Petter Adsen wrote: > I want to do a "du -sh *" in a directory, and sort the directories by > sizes. The problem is that they are listed (since I use the "-h" > option) in human-readable format. Is there an easy way to do this, so > that 254G comes before 1,3T?

Sorting directories by size

2015-02-28 Thread Petter Adsen
I want to do a "du -sh *" in a directory, and sort the directories by sizes. The problem is that they are listed (since I use the "-h" option) in human-readable format. Is there an easy way to do this, so that 254G comes before 1,3T? I'm guessing I would need some sort of regexp, and I don't know