MPE/iX Shell and Utilities Reference Manual, Vol 2

printf(1) MPE/iX Shell and Utilities printf(1)
The conversion character char is one of the following:
b a string which may contain a backslash-escape sequence. Valid escape sequences are
those described on the echo(1) man page, \0ddd where ddd is a zero- to three-digit
octal number, and \c which causes printf to ignore the remainder of that argu-
ment, any other arguments, and the remainder of the format string.
c single character of an integer value; the first character of a string.
d decimal integer.
E,e floating point (scientific notation).
F,f floating point.
G,g the shorter of e and f (suppresses non-significant zeros).
i decimal integer.
o unsigned octal integer.
s string.
u unsigned decimal integer.
X,x unsigned hexadecimal integer.
When there are more arguments than positions in format, the format string is applied again to
the remaining arguments. When there are fewer arguments than there are positions in the for-
mat string, printf fills the remaining positions with null-strings (character fields) or zeros
(numeric fields).
DIAGNOSTICS
Possible exit status values are:
0 Successful completion.
>0 The numbers of failures.
Messages
Message: Missing format specification
Cause: You did not specify a format specification on the command line.
Action: Provide the missing format specification.
Message: not a valid integer argument "string(dq
Cause: You specified a format specification that was expecting an integer, but you pro-
vided the argument string which was not an integer.
Action: Provide a valid integer in place of string
Message: not a valid real argument "string"
Cause: You specified a format specification that was expecting a real (that is, floating
point) number, but you provided the argument string which was not a valid real
number.
Action: Provide a valid real number in place of string
1-440 Commands and Utilities