https://github.com/printfn/hextoggle
Easily view and edit hex files
https://github.com/printfn/hextoggle
c cli hex hex-editor hexadecimal
Last synced: 3 months ago
JSON representation
Easily view and edit hex files
- Host: GitHub
- URL: https://github.com/printfn/hextoggle
- Owner: printfn
- License: gpl-3.0
- Created: 2022-03-07T22:44:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T05:17:13.000Z (over 1 year ago)
- Last Synced: 2025-01-18T07:12:59.443Z (5 months ago)
- Topics: c, cli, hex, hex-editor, hexadecimal
- Language: C
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hextoggle
## Build
To build and install `hextoggle`, you can run:
```sh
git clone https://github.com/printfn/hextoggle
cd hextoggle
sudo make install
```You can optionally override the install location by setting `PREFIX`.
The default prefix is `/usr/local/`.```sh
sudo make install PREFIX=.
```## Usage
```
Usage: hextoggle [file] # toggle file in-place
hextoggle [input] [output] # read 'input', write to 'output'
hextoggle - # read from stdin/write to stdoutFlags:
-n --dry-run # discard results
-d --decode # force decode (i.e. hex -> binary)
-e --encode # force encode (i.e. binary -> hex)
-h --help # show this usage informationReturn codes:
0 success
1 invalid arguments
2 failed to open input files
3 failed to clean up files
4 invalid input
5 internal assertion failed
```## License
This project is available under the GPL 3.0 or any later version.