Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dcousens/bindrop

A streaming binary cut tool written in C++
https://github.com/dcousens/bindrop

binary bytes cut pipe stdin stdout streaming unix

Last synced: 1 day ago
JSON representation

A streaming binary cut tool written in C++

Awesome Lists containing this project

README

        

# bindrop
A streaming binary `cut` tool, pipes `stdin` to `stdout`.

Byte-for-byte, **not UTF8 aware**.

## Examples
Drop bytes 4:8, every 17 bytes
``` bash
> echo -e 'whats in the box\nwho has the box?' | ./bindrop 4 8 17
what the box
who the box?
```
**Warning**: if the bytes read is not a multiple of the slice length (for example, 17 bytes), the remainder is truncated (dropped).

## LICENSE [MIT](LICENSE)