Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


8.4.25 printf command (converts form arguments according to the form and outputs the results to the standard output)

Syntax

printf form [form argument ...]

Description

This command converts form arguments according to the form and outputs the results to the standard output.

Arguments

Form

The form is composed of the following three types of character strings:

To specify a conversion, specify %, which indicates a conversion specification, followed in sequence by: flag characters, the minimum field width, the precision, and a conversion specifier. Flag characters, minimum field width, and precision can be omitted.

Form arguments

Return codes

Return code

Meaning

0

Normal termination.

1

Termination with an error.

Notes

Examples