limit stream of bytes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stephen McQuay d7eb517c65
vendor deps
2 years ago
vendor/github.com/dustin/go-humanize vendor deps 2 years ago
license.txt init 2 years ago
main.go init 2 years ago
readme.md added readme 2 years ago

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