2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2014-09-29 13:35:35 +00:00
|
|
|
.Dt PRINTF 1
|
2015-02-15 13:46:58 +00:00
|
|
|
.Os sbase
|
2014-09-29 13:35:35 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm printf
|
2015-02-15 13:46:58 +00:00
|
|
|
.Nd print formatted data
|
2014-09-29 13:35:35 +00:00
|
|
|
.Sh SYNOPSIS
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2014-09-29 13:35:35 +00:00
|
|
|
.Ar format
|
2015-02-15 13:46:58 +00:00
|
|
|
.Op Ar arg ...
|
2014-09-29 13:35:35 +00:00
|
|
|
.Sh DESCRIPTION
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2015-02-15 13:46:58 +00:00
|
|
|
writes formatted data according to
|
2014-09-29 13:35:35 +00:00
|
|
|
.Ar format
|
2015-02-15 13:46:58 +00:00
|
|
|
using each
|
|
|
|
.Ar arg
|
|
|
|
until drained.
|
2014-09-29 13:35:35 +00:00
|
|
|
.Pp
|
2015-02-15 13:46:58 +00:00
|
|
|
.Nm
|
|
|
|
interprets the standard escape sequences \e\e, \e', \e", \ea, \eb, \ee,
|
2016-02-20 20:51:05 +00:00
|
|
|
\ef, \en, \er, \et, \ev, \exH[H], \eO[OOO], the sequence \ec, which
|
2015-02-15 13:46:58 +00:00
|
|
|
terminates further output if it's found inside
|
|
|
|
.Ar format
|
|
|
|
or a %b format string, the format specification %b for an unescaped string and all C
|
2014-09-29 13:35:35 +00:00
|
|
|
.Xr printf 3
|
2015-02-15 13:46:58 +00:00
|
|
|
format specifications ending with csdiouxXaAeEfFgG, including variable width and precision.
|
2014-09-29 13:35:35 +00:00
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2016-02-20 20:46:52 +00:00
|
|
|
specification.
|
2016-02-20 20:51:05 +00:00
|
|
|
.Pp
|
|
|
|
The possibility of specifying 4-digit octals is an extension to that specification.
|