printf — Write Formatted Output

Synopsis

/usr/bin/printf format [argument...] 

Description

The printf command writes formatted operands to the standard output. The argument operands are formatted under control of the format operand.

Operands

format A string describing the format used to write the remaining operands. Use the format operand as the format string described on the formats(5) manual page, with the following exceptions.
  • In any context other than a flag of a conversion specification, treat a space character in the format string as an ordinary character that is copied to the output.

  • Treat a delta character in the format string as a delta character, not as a space character.

  • In addition to the escape sequences described on the formats ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.