XXD hex-dump utility

Submit command line tools that you find here.
Post Reply
Message
Author
User avatar
__philippe
Posts: 687
Joined: Wed Jun 26, 2013 2:09 am

XXD hex-dump utility

#1 Post by __philippe »

BTW, further to the above post,

xxd.exe, a small (70k) but mighty stand-alone hex-converter, ported from Linux to Win32, can be downloaded here. (full MAN page there.)

Code: Select all

c:\>sigcheck -q -v xxd.exe
        Verified:       Unsigned
        Link date:      16:52 27/10/2010
        MachineType:    32-bit
	     VT detection:   1/56
[/medium]
Very handy for quickly creating Hex dump of a file, or for checking Hex values from standard keyboard input on-the-fly.

Example usage:
Two consecutive non-printing "Alt-255" characters (inserted beteen strings "1234" and "qwerty") are rendered as Hex FFFF

Code: Select all

c:\>echo 1234  qwerty | xxd -u
0000000: 3132 3334 FFFF 7177 6572 7479 200D 0A    1234..qwerty ..
[/medium]
Command options summary

Code: Select all

c:\>xxd -h
Usage:
       xxd [options] [infile [outfile]]
    or
       xxd -r [-s [-]offset] [-c cols] [-ps] [infile [outfile]]
Options:
    -a          toggle autoskip: A single '*' replaces nul-lines. Default off
    -b          binary digit dump (incompatible with -ps,-i,-r). Default hex.
    -c cols     format <cols> octets per line. Default 16 (-i: 12, -ps: 30).
    -E          show characters in EBCDIC. Default ASCII.
    -g          number of octets per group in normal output. Default 2.
    -h          print this summary.
    -i          output in C include file style.
    -l len      stop after <len> octets.
    -ps         output in postscript plain hexdump style.
    -r          reverse operation: convert (or patch) hexdump into binary.
    -r -s off   revert with <off> added to file positions found in hexdump.
    -s [+][-]seek  start at <seek> bytes abs. (or +: rel.) infile offset.
    -u          use upper case hex letters.
    -v          show version: "xxd V1.10 27oct98 by Juergen Weigert (Win32)".
[/medium]

Post Reply