Avgfile is a small and simple tool made in Rust that calculates the average byte in a file.
If you don't want to compile the thing yourself, download the latest release here.
If you instead want to compile avgfile, you can do so by getting Rust.
Once that is installed, clone the repository:
git clone git@github.com:Mnpn03/avgfile.git
to clone with SSH, or
git clone https://github.com/Mnpn03/avgfile.git
to clone with HTTPS.
Then you simply build it by running cargo build --release
.
$ avgfile /path/to/desired.file
$ avgfile -t
- Print the total amount of bytes in a file.
$ avgfile -s <byte>
- Search for a byte in a file.
$ avgfile -u
- Print the number of unique bytes in a file.
To get more help, run
$ avgfile -h
To contribute to the project, simply create a pull request or an issue.
Avgfile is FOSS that comes with no warranty. Read more about the license used here.