sorty: Sort lines per file size
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 .
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
debug | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- sorty-0.1.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.1 |
---|---|
Dependencies | base (>=4.1.0 && <5), bytestring (>=0.9.1 && <0.10) [details] |
License | BSD-3-Clause |
Author | Krzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com> |
Maintainer | Krzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com> |
Category | Utils |
Source repo | head: git clone http://github.com/Tener/haskell-sorty.git this: git clone http://github.com/Tener/haskell-sorty.git(tag 0.1.1) |
Uploaded | by KrzysztofSkrzetnicki at 2009-12-02T00:10:33Z |
Distributions | |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | sorty |
Downloads | 1618 total (7 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] Last success reported on 2016-12-30 [all 7 reports] |