printf.1 (743B)
1 .Dd October 8, 2015 2 .Dt PRINTF 1 3 .Os sbase 4 .Sh NAME 5 .Nm printf 6 .Nd print formatted data 7 .Sh SYNOPSIS 8 .Nm 9 .Ar format 10 .Op Ar arg ... 11 .Sh DESCRIPTION 12 .Nm 13 writes formatted data according to 14 .Ar format 15 using each 16 .Ar arg 17 until drained. 18 .Pp 19 .Nm 20 interprets the standard escape sequences \e\e, \e', \e", \ea, \eb, \ee, 21 \ef, \en, \er, \et, \ev, \exH[H], \eO[OOO], the sequence \ec, which 22 terminates further output if it's found inside 23 .Ar format 24 or a %b format string, the format specification %b for an unescaped string and 25 all C 26 .Xr printf 3 27 format specifications ending with csdiouxXaAeEfFgG, including variable width 28 and precision. 29 .Sh STANDARDS 30 POSIX.1-2013. 31 .Pp 32 The possibility of specifying 4-digit octals is an extension to that 33 specification.