DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(gawk.info) Printf

Info Catalog (gawk.info) OFMT (gawk.info) Printing (gawk.info) Redirection
 
 Using `printf' Statements for Fancier Printing
 ==============================================
 
    If you want more precise control over the output format than `print'
 gives you, use `printf'.  With `printf' you can specify the width to
 use for each item, and you can specify various formatting choices for
 numbers (such as what radix to use, whether to print an exponent,
 whether to print a sign, and how many digits to print after the decimal
 point).  You do this by supplying a string, called the "format string",
 which controls how and where to print the other arguments.
 

Menu

 
* Basic Printf                Syntax of the `printf' statement.
* Control Letters             Format-control letters.
* Format Modifiers            Format-specification modifiers.
* Printf Examples             Several examples.
 
Info Catalog (gawk.info) OFMT (gawk.info) Printing (gawk.info) Redirection
automatically generated byinfo2html