Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ od(1) — DG/UX 5.4R2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

strings(1)



od(1)                        DG/UX 5.4 Rel. 2.01                       od(1)


NAME
       od - octal dump

SYNOPSIS
       od [ -bcDdFfOoSsvXx ] [ file ] [ [ + ]offset[ . | x | b ] ]

DESCRIPTION
       od displays file in one or more formats, as selected by the first
       argument.  If the first argument is missing, -o is default.  If no
       file is specified, the standard input is used.  For the purposes of
       this description, "word" refers to a 16-bit unit, independent of the
       word size of the machine; "long word" refers to a 32-bit unit, and
       "double long word" refers to a 64-bit unit.  The meanings of the
       format options are:

       -b    Interpret bytes in octal.

       -c    Interpret bytes as single-byte characters.  Certain non-graphic
             characters appear as C-language escapes: null=\0, backspace=\b,
             form-feed=\f, new-line=\n, return=\r, tab=\t; others appear as
             3-digit octal numbers (see EXAMPLES below).

       -D    Interpret long words in unsigned decimal.

       -d    Interpret words in unsigned decimal.

       -F    Interpret double long words in extended precision.

       -f    Interpret long words in floating point.

       -O    Interpret long words in unsigned octal.

       -o    Interpret words in octal.

       -S    Interpret long words in signed decimal.

       -s    Interpret words in signed decimal.

       -v    Show all data (verbose).

       -X    Interpret long words in hex.

       -x    Interpret words in hex.

       offset specifies an offset from the beginning of file where the
       display will begin.  offset is normally interpreted as octal bytes.
       If . is appended, offset is interpreted in decimal.  If x is
       appended, offset is interpreted in hexadecimal.  If b is appended,
       offset is interpreted in blocks of 512 bytes.  If file is omitted,
       offset must be preceded by +.

       The display continues until an end-of-file is reached.





Licensed material--property of copyright holder(s)                         1




od(1)                        DG/UX 5.4 Rel. 2.01                       od(1)


   International Features
       od can process characters from supplementary code sets.

       The value of the offset argument must be specified in bytes.

EXAMPLES
       echo "hello world" | od -c
       0000000   h   e   l   l   o       w   o   r   l   d  \n
       0000014

       This example displays the string "hello world" in ASCII format.

       $ cat a
       test file
       $ od -b a
       0000000 164 145 163 164 040 146 151 154 145 012
       0000012

       This example displays the file a on the standard output in byte octal
       format.

       $ od -cb a
       0000000   t   e   s   t       f   i   l   e  \n
               164 145 163 164 040 146 151 154 145 012
       0000012

       This example displays the file a in ASCII and octal formats.

       $ od -x a
       0000000 7465 7374 2066 696c 650a
       0000012

       This example displays the file a in hexadecimal format.

SEE ALSO
       strings(1).





















Licensed material--property of copyright holder(s)                         2


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026