Go to the first, previous, next, last section, table of contents.
One of the most common programming actions is to print or output,
some or all of the input. Use the print statement
for simple output, and the printf statement
for fancier formatting.
The print statement is not limited when
computing which values to print. However, with two exceptions,
you cannot specify how to print them--how many
columns, whether to use exponential notation or not, and so on.
(For the exceptions, see section Output Separators, and
section Controlling Numeric Output with print.)
For that, you need the printf statement
(see section Using printf Statements for Fancier Printing).
Besides basic and formatted printing, this major node
also covers I/O redirections to files and pipes, introduces
the special file names that @command{gawk} processes internally,
and discusses the close built-in function.
Go to the first, previous, next, last section, table of contents.