sm
/
lim
1
0
Fork 0
Dieser Commit ist enthalten in:
Stephen McQuay 2016-08-22 18:29:51 -07:00
Ursprung 7da9bc2cb5
Commit 024a0aa4cf
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1ABF428F71BAFC3D
1 geänderte Dateien mit 29 neuen und 0 gelöschten Zeilen

29
readme.md Normale Datei
Datei anzeigen

@ -0,0 +1,29 @@
# 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:
```bash
$ 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
```