https://github.com/vteromero/byte-hist
Byte histogram tool in Go
https://github.com/vteromero/byte-hist
byte bytes cli go golang histogram
Last synced: 5 months ago
JSON representation
Byte histogram tool in Go
- Host: GitHub
- URL: https://github.com/vteromero/byte-hist
- Owner: vteromero
- License: mit
- Created: 2017-06-27T15:18:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-02-14T11:58:18.000Z (over 8 years ago)
- Last Synced: 2024-06-20T13:38:47.378Z (about 2 years ago)
- Topics: byte, bytes, cli, go, golang, histogram
- Language: Go
- Homepage:
- Size: 146 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# byte-hist
[](https://travis-ci.org/vteromero/byte-hist)
[](https://goreportcard.com/report/github.com/vteromero/byte-hist)

`byte-hist` is a simple tool that prints a histogram of the bytes of a file.
## Installation
To install byte-hist, simply run:
```
$ go get -v github.com/vteromero/byte-hist
```
Once the `get` completes, you should find the `byte-hist` executable inside
`$GOPATH/bin`.
## Usage
These are some examples of how you can run `byte-hist`:
```
$ ./byte-hist file # print the byte histogram of file
$ ./byte-hist -format=x file # the bytes are printed in hexadecimal format
$ ./byte-hist -sort=asc file # sort by count column in ascending order
$ echo "hello world!" | ./byte-hist # you can use a pipe
```
For the complete list of available options, just type:
```
$ ./byte-hist -help
```