Sortix 1.1dev nightly manual
This manual documents Sortix 1.1dev nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
|XXD(1)||General Commands Manual||XXD(1)|
- -a | -autoskip
- toggle autoskip: A single '*' replaces nul-lines. Default off.
- -b | -bits
- Switch to bits (binary digits) dump, rather than hexdump. This option writes octets as eight digits "1"s and "0"s instead of a normal hexadecimal dump. Each line is preceded by a line number in hexadecimal and followed by an ascii (or ebcdic) representation. The command line switches -r, -p, -i do not work with this mode.
- -c cols | -cols cols
- format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: 6). Max 256.
- -E | -EBCDIC
- Change the character encoding in the righthand column from ASCII to EBCDIC. This does not change the hexadecimal representation. The option is meaningless in combinations with -r, -p or -i.
Switch to little-endian hexdump. This option treats byte groups as words in little-endian byte order. The default grouping of 4 bytes may be changed using
- -g bytes | -groupsize bytes
- separate the output of every <bytes> bytes (two hex characters or eight bit-digits each) by a whitespace. Specify -g 0 to suppress grouping. <Bytes> defaults to 2 in normal mode, 4 in little-endian mode and 1 in bits mode. Grouping does not apply to postscript or include style.
- -h | -help
- print a summary of available commands and exit. No hex dumping is performed.
- -i | -include
- output in C include file style. A complete static array definition is written (named after the input file), unless xxd reads from stdin.
- -l len | -len len
- stop after writing <len> octets.
- -o offset
- add <offset> to the displayed file position.
- -p | -ps | -postscript | -plain
- output in postscript continuous hexdump style. Also known as plain hexdump style.
- -r | -revert
- reverse operation: convert (or patch) hexdump into binary. If not writing to stdout, xxd writes into its output file without truncating it. Use the combination -r -p to read plain hexadecimal dumps without line number information and without a particular column layout. Additional Whitespace and line-breaks are allowed anywhere.
- -seek offset
- When used after -r: revert with <offset> added to file positions found in hexdump.
- -s [+][-]seek
- start at <seek> bytes abs. (or rel.) infile offset. + indicates that the seek is relative to the current stdin file position (meaningless when not reading from stdin). - indicates that the seek should be that many characters from the end of the input (or if combined with +: before the current stdin file position). Without -s option, xxd starts at the current file position.
- use upper case hex letters. Default is lower case.
- -v | -version
- show version string.
- no errors encountered.
- operation not supported ( xxd -r -i still impossible).
- error while parsing options.
- problems with input file.
- problems with output file.
- desired seek position is unreachable.
|August 1996||Manual page for xxd|