The sorty package

[Tags: bsd3, program]

This simple tool sorts input filelines by first collumn suffixed by unit. Recognized units:

 k = 1000
 m = 1000 * k
 g = 1000 * m
 K = 1024
 M = 1024 * K
 G = 1024 * G

I needed this for output from 'du -h':

 $ du -h -a
 4,0K   ./sorty.cabal
 20K   ./sorty.o
 0   ./.#sorty.cabal
 4,0K   ./#sorty.cabal#
 4,0K   ./sorty.hs~
 4,0K   ./sorty.hs
 4,0K   ./sorty.hi
 868K   ./sorty
 912K   .

Filtered through sorty:

 $ du -h -a | ./sorty

 0   ./.#sorty.cabal
 4,0K   ./sorty.cabal
 4,0K   ./#sorty.cabal#
 4,0K   ./sorty.hs~
 4,0K   ./sorty.hs
 4,0K   ./sorty.hi
 20K   ./sorty.o
 868K   ./sorty
 912K   .

Properties

Versions0.1, 0.1.1
Change logNone available
Dependenciesbase (>=4.1.0 && <5), bytestring (>=0.9.1 && <0.10) [details]
LicenseBSD3
AuthorKrzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com>
MaintainerKrzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com>
CategoryUtils
Source repositoryhead: git clone http://github.com/Tener/haskell-sorty.git
this: git clone http://github.com/Tener/haskell-sorty.git(tag 0.1.1)
Executablessorty
UploadedWed Dec 2 00:10:33 UTC 2009 by KrzysztofSkrzetnicki
DistributionsNixOS:0.1.1
Downloads330 total (24 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
Last success reported on 2015-05-21 [all 2 reports]

Flags

NameDescriptionDefault
debugDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees