One of the most common programming actions is to
print, or output, some or all of the input. Use the
printf statement for fancier
statement (see Using printf Statements for Fancier Printing).
Besides basic and formatted printing, this chapter also covers I/O
redirections to files and pipes, introduces the special filenames that
gawk processes internally, and discusses
close() built-in function.
The entire list of items may be optionally enclosed in parentheses.
The parentheses are necessary if any of the item expressions uses the
>’ relational operator; otherwise
it could be confused with an output redirection (see Redirecting Output of print and printf).
The items to print can be constant strings or numbers, fields of the
current record (such as
$1), variables, ...