gawk: Output Summary
1
1 5.11 Summary
1 ============
1
1 * The 'print' statement prints comma-separated expressions. Each
1 expression is separated by the value of 'OFS' and terminated by the
1 value of 'ORS'. 'OFMT' provides the conversion format for numeric
1 values for the 'print' statement.
1
1 * The 'printf' statement provides finer-grained control over output,
1 with format-control letters for different data types and various
1 flags that modify the behavior of the format-control letters.
1
1 * Output from both 'print' and 'printf' may be redirected to files,
1 pipes, and coprocesses.
1
1 * 'gawk' provides special file names for access to standard input,
1 output, and error, and for network communications.
1
1 * Use 'close()' to close open file, pipe, and coprocess redirections.
1 For coprocesses, it is possible to close only one direction of the
1 communications.
1
1 * Normally errors with 'print' or 'printf' are fatal. 'gawk' lets
1 you make output errors be nonfatal either for all files or on a
1 per-file basis. You must then check for errors after every
1 relevant output statement.
1