Manual Pages for UNIX Darwin command on man od
MyWebUniversity

Manual Pages for UNIX Darwin command on man od

OD(1) BSD General Commands Manual OD(1)

NAME

oodd - octal, decimal, hex, ASCII dump

SYNOPSIS

oodd [-aaBBbbccDDddeeFFffHHhhIIiiLLllOOoossvvXXxx] [-AA base] [-jj skip] [-NN length] [-tt type]

[[++]offset[..][BBbb]] [file ...]

DESCRIPTION

The oodd utility is a filter which displays the specified files, or stan-

dard input if no files are specified, in a user specified format. The options are as follows:

-AA base Specify the input address base. base may be one of dd, oo, xx

or nn, which specify decimal, octal, hexadecimal addresses or no address, respectively.

-aa Output named characters. Equivalent to -tt a.

-BB, -oo Output octal shorts. Equivalent to -tt o2.

-bb Output octal bytes. Equivalent to -tt o1.

-cc Output C-style escaped characters. Equivalent to -tt c.

-DD Output unsigned decimal ints. Equivalent to -tt u4.

-ee, -FF Output double-precision floating point numbers. Equivalent

to -tt fD.

-ff Output single-precision floating point numbers. Equivalent

to -tt fF.

-HH, -XX Output hexadecimal ints. Equivalent to -tt x4.

-hh, -xx Output hexadecimal shorts. Equivalent to -tt x2.

-II, -LL, -ll Output signed decimal longs. Equivalent to -tt dL.

-ii Output signed decimal ints. Equivalent to -tt dI.

-jj skip Skip skip bytes of the combined input before dumping. The

number may be followed by one of bb, kk or mm which specify the units of the number as blocks (512 bytes), kilobytes and megabytes, respectively.

-NN length Dump at most length bytes of input.

-OO Output octal ints. Equivalent to -tt o4.

-ss Output signed decimal shorts. Equivalent to -tt d2.

-tt type Specify the output format. type is a string containing one

or more of the following kinds of type specifiers: aa Named characters (ASCII). Control characters are displayed using the following names: 000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ 006 ACK 007 BEL 008 BS 009 HT 00a NL 00b VT 00c FF 00d CR 00e SO 00f SI 010 DLE 011 DC1 012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB 018 CAN 019 EM 01a SUB 01b ESC 01c FS 01d GS 01e RS 01f US 020 SP 0ff DEL

cc Characters in the default character set. Non-print-

ing characters are represented as 3-digit octal char-

acter codes, except the following characters, which

are represented as C escapes: NUL \0 alert \a backspace \b newline \n

carriage-return \r

tab \t vertical tab \v

Multi-byte characters are displayed in the area cor-

responding to the first byte of the character. The remaining bytes are shown as `**'. [dd|oo|uu|xx][CC|SS|II|LL|n] Signed decimal (dd), octal (oo), unsigned decimal (uu) or hexadecimal (xx). Followed by an optional size specifier, which may be either CC (char), SS (short), II

(int), LL (long), or a byte count as a decimal inte-

ger. ff[FF|DD|LL|n]

Floating-point number. Followed by an optional size

specifier, which may be either FF (float), DD (double) or LL (long double).

-vv Write all input data, instead of replacing lines of duplicate

values with a `*'. Multiple options that specify output format may be used; the output will contain one line for each format.

If no output format is specified, -tt oS is assumed.

ENVIRONMENT The LANG, LCALL and LCCTYPE environment variables affect the execution

of oodd as described in environ(7).

DIAGNOSTICS

The oodd utility exits 0 on success, and >0 if an error occurs.

CCOOMMPPAATTIIBBIILLIITTYY

The traditional -ss option to extract string constants is not supported;

consider using strings(1) instead.

SEE ALSO

hexdump(1), strings(1) STANDARDS

The oodd utility conforms to IEEE Std 1003.1-2001 (``POSIX.1'').

HISTORY

An oodd command appeared in Version 1 AT&T UNIX.

BSD July 11, 2004 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™