close(
filename-expr
)
close
(
command-expr
)
In most implementations of awk
, you can have only 10 files open simultaneously and one pipe. Therefore, nawk
provides a close
function that allows you to close a file or a pipe. It takes as an argument the same expression that opened the pipe or file. This expression must be identical, character by character, to the one that opened the file or pipe; even whitespace is significant. {N}