HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

n
nadb(1) nadb(1)
w The size of the object is the size of a machine word of the target processor.
h The size of the object is half the size of a machine word of the target processor.
l The size of the object is double the size of a machine word of the target processor.
n The size of the object is the size of a pointer on the target processor. This will be different for
wide files and narrow files.
m The size of the object is the size of an instruction of the target processor. This will be supported
only on processors where this is constant.
Conversion Specifier Character
The following characters are supported
a The value of dot is printed in symbolic form.
c The object is printed as a character.
o The object is printed as an unsigned octal number.
d The object is printed as a signed decimal number.
u The object is printed as an unsigned decimal number.
i The object is disassembled as an instruction and printed.
f The object is printed in a floating point format according to its size.
p The object is printed in symbolic form.
s The object is assumed to be a null terminated string and printed. This cannot be used to print
dot.
y The object is cast to type time_t and printed in the ctime(3C) format.
Here the printf-style format strings support only c, o, d, u,
x, f, and s. If the size specifier
character is not specified, it is assumed to be
b for conversion character c
; w for conversion charac-
ters
d, u, x, o, and f; m for i; sizeof(time_t)
for y; and w for everything else.
For example.
10=2bo, ’abc’=,"%s", main?4i
2. Dot Operator
A dot operator consists of an optional count, optional size specifier character, and a dot operator character.
count count specifies the number of times this dot operator is to be repeated. If not specified, count is
assumed to be 1. The count is always 1 for
printf-style format strings.
Size Specifier Character
Same as size specifier character of conversion specifier.
Dot operator character
This can be one of these
v Increment dotincr by count times size.
z Decrement dotincr by count times size.
For example: =5bv, =5bv5bz
Backward Compatibility Mode
In backward compatibility mode, the traditional style can be a conversion specifier, dot operator, spacing
specifier,oraliteral string.
1. Conversion Specifier
A conversion specifier consists of an optional count followed by a conversion specifier character.
count Specify the number of times this conversion specifier is to be repeated. If not specified, count is
assumed to be 1.
Conversion Specifier Character
These have an implicit size. No explicit size is recognized. The following format characters are
available: (Their implicit sizes are mentioned next to them.)
HP-UX 11i Version 1: September 2005 9 Hewlett-Packard Company Section 1585