xxd <infile> <outfile>
Make a hexdump or do the reverse
Arguments
Name | Description |
---|
infile | filepaths |
outfile | filepaths |
Options
Name | Description |
---|
-help, -h | Show help for xxd |
-autoskip, -a | Toggle autoskip: A single '*' replaces nul-lines. Default off |
-bits, -b | Switch to bits (binary digits) dump, rather than hexdump |
-cols, -c <cols> | Format <cols> octets per line. Default 16 |
-capitalize, -C | Capitalize variable names in C include file style, when using -i |
-EBCDIC, -E | Change the character encoding in the righthand column from ASCII to EBCDIC |
-e | Switch to little-endian hexdump |
-groupsize, -g <bytes> | Separate the output of every <bytes> bytes |
-include, -i | Output in C include file style |
-len, -l <len> | Stop after writing <len> octets |
-name, -n <name> | Override the variable name output when -i is used |
-o <offset> | Add <offset> to the displayed file position |
-postscript, -plain, -ps, -p | Output in postscript continuous hexdump style |
-revert, -r | Reverse operation: convert (or patch) hexdump into binary |
-seek <offset> | When used after -r: revert with <offset> added to file positions found in hexdump |
-u | Use upper case hex letters. Default is lower case |
-version, -v | Show version string |