| Crates.io | hexsearch |
| lib.rs | hexsearch |
| version | 0.1.1 |
| created_at | 2022-12-04 08:59:38.394566+00 |
| updated_at | 2022-12-11 06:57:16.405266+00 |
| description | A CLI utility to search arbitrary bytes in files, by leveraging the power of regex crate in Rust. |
| homepage | https://github.com/yestyle/hexsearch |
| repository | https://github.com/yestyle/hexsearch |
| max_upload_size | |
| id | 729531 |
| size | 109,605 |
A CLI utility to search arbitrary bytes in files, by leveraging the power of regex crate in Rust.

This crate has been published onto crates.io, so you can use the following command to install hexsearch executable to ~/.cargo/bin directory:
cargo install hexsearch
hexsearch [OPTIONS] <bytes> <files>
The bytes to be searched can be in one of two formats:
1f 8b 080x1f8b08. This format will respect the --endian argument and it's big-endian by defaultMultiple files can be searched in one go by passing in paths separated by space.
The search result will be printed in a style similar to hexdump(1) and you can set the line width by --width argument (default width: 16).
You can also print some extra lines before and after the search result by setting --context argument.
See hexsearch --help for full usage.
This project is licensed under MIT license.