jlaasonen / hexfile

Simple command-line tool to print a hex dump of a file
https://jlaasonen.me/software/hexfile
MIT License
5 stars 0 forks source link
cli dump hex hexdump hexdumper

hexfile

Test

Simple command-line tool which prints a hex dump of a file.

Sources

hexfile is available at:

Requirements

Compiling

Compile using task

task build

, or with plain fbc

fbc -e -w all -w pedantic -w error hexfile.bas 

Testing

Compile and run tests with task

task test

, or with plain fbc

fbc -e -w all -w pedantic -w error test.bas
./test

Usage

hexfile [-i <start index>] <filename>

Start index can be given in format supported by the VALLNG function.

Page Up & Page Down show the previuos and the page respectively. Up and down arrows scroll one line at the time. Esc will end the program.

image

Acknowledgements

Inspired by the hexfile program in P.K. McBride, 1989, Programming in GW-BASIC chapter 15.6.