Write the pattern space to standard output in a visually unambiguous form. Write the pattern space to standard output if the default output has not been suppressed, and replace the pattern space with the next line of input. N Append the next line of input to the pattern space, using an embedded newline character to separate the appended material from the original material. Note that the current line number changes. Write the pattern space to standard output.
P Write the pattern space, up to the first newline character, to standard output.
If rfile does not exist or cannot be read, it is treated as if it were an empty file, causing no error condition. Substitute the replacement string for instances of the regular expression in the pattern space. Any character other than backslash or newline can be used instead of a slash to delimit the RE and the replacement. Within the RE and the replacement, the RE delimiter itself can be used as a literal character if it is preceded by a backslash. A line can be split by substituting a newline character into it.