Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hollasch/hex

Simple hexadecimal file dump utility for Windows command line
https://github.com/hollasch/hex

c-plus-plus command-line command-line-tool dumps hexadecimal windows

Last synced: about 1 month ago
JSON representation

Simple hexadecimal file dump utility for Windows command line

Awesome Lists containing this project

README

        

hex
====================================================================================================
A hexadecimal dump for the Windows command line.

Summary
--------
This is a simple hexadecimal print utility that reads input from the standard input stream or from
files specified on the command line. See doc/hex.html for usage information.

Usage
------
hex v1.1.0 2020-10-03 https://github.com/hollasch/hex

hex: dumps the contents of a file in hex and ASCII
usage: hex [--byte|-b] [--word|-w] [--longword|-l] [--quadword|-q]
[--octword|-o] [--compact|-c]
[<-s|--start> ] [<--end|-e> ] [file] ... [file]

This tool dumps the contents of a file in hexadecimal and ascii. If no
filenames are supplied, hex reads from the standard input stream.

--byte,-b Display output grouped by bytes
--word,-w Display output grouped by words (16-bits)
--longword,-l Display output grouped by longwords (32-bits)
--quadword,-q Display output grouped by quadwords (64-bits)
--octword,-o Display output grouped by octwords (128-bits)

--compact, -c
Compact duplicate lines. Blocks of identical data are represented by the
first line of data followed by a single line of \"====\".

--start

, -s

--end
, -e

Start/end the dump at the given location. To specify octal, prefix with
'0'. To specify hexadecimal, prefix with '0x'. For example, 200 = 0310 =
0xc8.

--version
Display version information

Description
------------
`hex` is a filter that reads data from either standard input (if no filenames are supplied) or from
the list of files, and dumps the data in hexadecimal and ASCII. Note that options may be prefixed
with either a `'-'` or with a `'/'` character, and that you can put spaces between the switch letter
and the argument (for example, "`-e200`" or "`-e 200`").

To specify hexadecimal values, prefix with "`0x`". to specify octal values, prefix with "`0`"
(zero). for example, `200` = `0310` = `0xc8`.

**Important**: From the command line, DOS does redirection streams as text, rather than binary. This
means that if you want to look at a binary data file, you should probably specify the filename on
the command line (for example, `hex foo.xyz`) rather than as a redirection (as in `hex
https://github.com/hollasch/hex