limit stream of bytes
Go to file
Stephen McQuay 04e200eb54
Uses multi-stage builds to create images
follows along here loosely:

https://docs.docker.com/develop/develop-images/multistage-build/
https://blog.alexellis.io/mutli-stage-docker-builds/
2018-04-17 16:52:21 -07:00
vendor/github.com/dustin/go-humanize vendor deps 2016-08-22 18:31:51 -07:00
.gitignore implements builder pattern for lim 2018-04-17 12:25:39 -07:00
Dockerfile Uses multi-stage builds to create images 2018-04-17 16:52:21 -07:00
Makefile Uses multi-stage builds to create images 2018-04-17 16:52:21 -07:00
license.txt init 2016-08-22 18:25:31 -07:00
main.go init 2016-08-22 18:25:31 -07:00
readme.md added readme 2016-08-22 18:30:20 -07:00

readme.md

lim

this is a simple cli to limit a stream of bytes by a certain number.

installation

use go get to install:

go get mcquay.me/lim

example usage

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