Binary files search utility
Project description
hrep
grep
for binary files.
Examples
TODO add some...
Usage
usage: hrep [-h] [-x HEX] [-a ASCII] [-e REGEX] [-r] [--chunk-size CHUNK_SIZE]
[-d] [-X] [-w DUMP_WIDTH] [-s] [-A AFTER] [-B BEFORE] [-C CONTEXT]
[-I INCLUDE] [-E EXCLUDE] [-L] [-l] [-c] [-m NUM] [-p]
[--no-color] [--monochrome]
[HEX] [filename [filename ...]]
Search for binary sequences in files
positional arguments:
HEX Hex encoded binary sequence to search for
filename List of files to search in
optional arguments:
-h, --help show this help message and exit
-x HEX, --hex HEX Search for a hexadecimal pattern('?' matches a single
nibble, '*' matches any number of bytes)
-a ASCII, --ascii ASCII
Search for an ASCII string
-e REGEX, --regex REGEX
Search for a regular expression
-r, --recursive Recursively search in directories
--chunk-size CHUNK_SIZE
Override default buffer size
-d, --decimal-offset Output decimal file offsets (by default prints hex)
-X, --no-hexdump Disable hex dump
-w DUMP_WIDTH, --dump-width DUMP_WIDTH
Width of hex dump
-s, --summary Print summary at the end
-A AFTER, --after AFTER
Number of additional bytes to display after match
-B BEFORE, --before BEFORE
Number of additional bytes to display before match
-C CONTEXT, --context CONTEXT
Number of additional bytes to display before and after
match
-I INCLUDE, --include INCLUDE
Filename pattern to include
-E EXCLUDE, --exclude EXCLUDE
Filename pattern to exclude
-L, --files-without-match
Only output unmatching filenames
-l, --files-with-match
Only output matching filenames
-c, --count Only output number of matches for each input file
-m NUM, --max-count NUM
Stop searching after NUM matches.
-p, --progress Enable progress display
--no-color Disable color output
--monochrome Use monochrome color scheme
Unless one of --files-with(out)-match, --count is specified, each output line
corresponds to a match in the format: `<filename>:<offset>:<match>'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hrep-0.3.0a0.tar.gz
(6.6 kB
view details)
File details
Details for the file hrep-0.3.0a0.tar.gz
.
File metadata
- Download URL: hrep-0.3.0a0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5daf6b600a44dc0a86ec363453022e08db7cdc11183e3b668b0691e48528f75 |
|
MD5 | 92f77cd55266d46dde3aa8ae8f1b11dc |
|
BLAKE2b-256 | f636f88c19ba97e4e164d3d363d5c6f4c52f4431e001a9322da9b872256bf855 |