
786
|
Chapter 11: The gawk Programming Language
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
nextfile
nextfile {E}
Stop processing the current input file and start new cycle through
pattern/procedures statements, beginning with the first record of
the next file.
or
or(expr1, expr2) {G}
Return the bitwise OR of expr1 and expr2, which should be values
that fit in a C unsigned long.
print
print [ output-expr[, ...]] [ dest-expr ]
Evaluate the output-expr and direct it to standard output followed
by the value of ORS. Each comma-separated output-expr is sepa-
rated in the output by the value of OFS. With no output-expr, print
$0. The output may be redirected to a file or pipe via the dest-expr,
which is described in “Output Redirections,” later in this chapter.
printf
printf(format [, expr-list ]) [ dest-expr ]
An alternative output statement borrowed from the C language. It
has the ability to produce formatted output. It can also be used to
output data without automatically producing a newline. format is a
string of format specifications and constants. expr-list is a list of
arguments corresponding to format specifiers. As for print, output
may be redirected to a file or pipe. See “printf Formats,” later in
this chapter, for a description of allowed format specifiers.
Like any string, format can also contain embedded escape
sequences: \n (newline) ...