dump - File Dump Utility

dump dumps the contents of a file to the standard output. The data is represented in two ways in the output, as numerical data dumped in a user-specified format and as character data dumped in a string:

address: data in user-specified format "data as a string"

Non-printing characters are displayed as "."s in the string. Here's the start of a hexadecimal dump of a gziped PDF file:

00000000:  1F8B0808 8309B444 00037072 6F6C6F67  ".......D..prolog"
00000010:  2D6E6F74 65732E70 646600DC FD63B825  "-notes.pdf...c.%"
00000020:  CF96E80B 2FDBB66A D9B66DD5 B26DDB36  "..../..j..m..m.6"
00000030:  6AD9B66D DBB66DDB A8B77677 DFEED3FD  "j..m..m...vw...."


% dump [-decimal] [-ebcdic] [-hexadecimal] [-number bytes]
       [-octal] [-skip offset] [-text] [-width numBytes]


dumps each byte as a decimal number.
specifies that the input data is EBCDIC. The numeric portion of the dump is unconverted data and the ASCII portion of the dump is converted data.
dumps every 4 bytes as a hexadecimal number. This is the default dump mode.
-number bytesToDump
specifies the number of bytes to dump.
dumps each byte as an octal number.
-skip offset
specifies the number of bytes (0..N-1) in the input file to skip before starting to dump the data.
dumps each byte as text, i.e., the data is not dumped in numeric form. Each output line will appear as: address: "data as a string".
-width numBytes
changes the number of bytes (width) of input data dumped on each line of output.
is the file to be dumped.

Alex Measday  /  E-mail