sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

printf.1 (795B)


      1 .Dd 2015-10-08
      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 all C
     25 .Xr printf 3
     26 format specifications ending with csdiouxXaAeEfFgG, including variable width and precision.
     27 .Sh STANDARDS
     28 The
     29 .Nm
     30 utility is compliant with the
     31 .St -p1003.1-2013
     32 specification.
     33 .Pp
     34 The possibility of specifying 4-digit octals is an extension to that specification.