редактор потока (stream editor)
Параметры (Options)
The sed utility shall conform to the Base Definitions volume of
POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines, except
that the order of presentation of the -e
and -f
options is
significant.
The following options shall be supported:
-e
script Add the editing commands specified by the script
option-argument to the end of the script of editing
commands.
-f
script_file
Add the editing commands in the file script_file to the
end of the script of editing commands.
-n
Suppress the default output (in which each line, after
it is examined for editing, is written to standard
output). Only lines explicitly selected for output are
written.
If any -e
or -f
options are specified, the script of editing
commands shall initially be empty. The commands specified by each
-e
or -f
option shall be added to the script in the order
specified. When each addition is made, if the previous addition
(if any) was from a -e
option, a <newline> shall be inserted
before the new addition. The resulting script shall have the same
properties as the script operand, described in the OPERANDS
section.