DUMP v1.50 - dump file contents in hex/decimal/octal |
Documentation revised 21 Oct 00 - Copyright (c) 1996-2000 by Rune Berg. TextTools Freeware. |
Contents:
Usage | Top || Next |
dump [log logfile] [options] infile [to outfile]
See Understanding The Usage Section for details.
Description | Top || Previous || Next |
dump writes the contents of infile in hex format (but see -d options).
If you don't specify outfile, dump writes to standard output.
Example | Top || Previous || Next |
For the 1-line file "cc.bat" containing:
tcc -g5 -j5 -I..\ttlib hd.c ..\ttlib\ttlib.lib
the command:
dump -w8 cc.bat
prints:
dump of "cc.bat" -- Mon Apr 01 04:32:26 1996 00000000 74 63 63 20 2d 67 35 20 "tcc -g5 " 00000008 2d 6a 35 20 20 2d 49 2e "-j5 -I." 00000016 2e 5c 74 74 6c 69 62 20 ".\ttlib " 00000024 68 64 2e 63 20 2e 2e 5c "hd.c ..\" 00000032 74 74 6c 69 62 5c 74 74 "ttlib\tt" 00000040 6c 69 62 2e 6c 69 62 0d "lib.lib." 00000048 0a 0d 0a 1a "...."
where:
<------> <---------------------> <--------> offsets data ASCII column column column (decimal) (hex)
Note that the date and time in the header are when this dump was made, not when infile was last modified.
Options | Top || Previous || Next |
dump recognizes the following command line options:
Option | Function |
---|---|
-wN | Show N (1..100) bytes of data per output line.
For -dh, N is by default 16. For -dd, N is by default 12. For -do, N is by default 12. For N = 1, ASCII display shows the names of unprintable characters. For N > 1, ASCII display shows unprintable characters as '.' |
-sN | Begin dumping at byte N (0..2147483646) of infile. |
-bN | Dump N (0..2147483646) bytes. |
-dd -dh -do | Show data in decimal, hex (default), or octal. |
-nd | Don't show data. |
-od -oh -oo | Show offsets in decimal (default), hex, or octal. |
-no | Don't show offsets. |
-a | Show ASCII (default). |
-na | Don't show ASCII. |
-nh | Don't show "dump of ..." header. |
-v | Print version banner and usage info to standard error (or logfile, if given), then exit. |
Return Codes | Top || Previous || Next |
dump returns with one of the following codes ("error levels"):
Code | Meaning |
---|---|
0 | Success |
102 | Incorrect/missing command line arguments |
104 | Error opening file |
105 | I/O Error |
107 | File name clash |
110 | Failed to get system date/time |
For more details, see TextTools General Features.
Version History | Top || Previous |
These are the released versions of dump:
Version | Date | Changes |
---|---|---|
1.00 | 25-Feb-96 | n/a |
1.10 | 4-Apr-96 |
|
1.20 | 16-Aug-96 |
|
1.20 | 11-May-97 |
|
1.30 | 13-Jul-97 |
|
1.40 | 2-Jan-99 |
|
1.50 | 21-Oct-00 |
|
End of document |