|
4 years ago | |
---|---|---|
vendor/github.com/dustin/go-humanize | 4 years ago | |
license.txt | 4 years ago | |
main.go | 4 years ago | |
readme.md | 4 years ago |
this is a simple cli to limit a stream of bytes by a certain number.
use go get
to install:
go get mcquay.me/lim
if you install the trash utility:
go install mcquay.me/trash
then pipe its output:
$ trash | lim > trash.dat
$ ls -lah trash.dat
-rw-r--r-- 1 sm staff 1.0M Aug 22 18:28 trash.dat
$ trash | lim 1gi > trash.dat
$ ls -lah trash.dat
-rw-r--r-- 1 sm staff 1.0G Aug 22 18:28 trash.dat