Table of Contents
Previous Utility | List of External Utilities

Xd


        Hex Dump a File to Stdout

Usage:  xd [-hbwlFD Zdxor nNq-] [-r<radix>]
              [-O <offset>] [-E <endset>] [-L[<items>]]
              [ file1 file2 ... ]

   xd dumps its input, presumed to be in binary, in variety of
   formats, the default being hex.  If more than one file is
   given, each is dumped in sequence.  If no files are specified,
   xd reads from stdin.  Sequences of lines containing the same
   data are collapsed out and replaced by an asterisk.

Options:

   -h          Help.  (This screen.)

  Basic display formats:

   -b          Bytes.  (Default.)
   -w          16-bit words.
   -l          32-bit long words.
   -F          Short 4-byte floating point.  Floating point values
               are always displayed in decimal.
   -D          Double-precision 8-byte floating point.
   -Z          Suppress leading zeros.  Normally, leading zeros
               are shown except when displaying in decimal.

  Radix to be used for reporting offsets and data:

   -d          Decimal (unsigned).
   -x          Hex.
   -o          Octal.
   -r<radix>   User-specified radix.  If a radix < 8 is chosen,
               offsets are always shown in hex.

  Other options:

   -O <offset> Offset at which to begin dumping.
   -E <endset> Offset at which to stop dumping.
   -L[<items>] Number of items (bytes, words, etc.) to dump.  If
               -L is specified, the default is one.
   -n          No ascii column.
   -N          No offset column.
   -q          Quiet mode.  Don't announce the name of each file
               as it's read.
   -v          Verbose.  Show lines of repeated data.
   --          End of options.



Previous Utility | List of External Utilities
Table of Contents



Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.