Go to the first, previous, next, last section, table of contents.
SED may be invoked with the following command-line options:
- `-V'
-
- `--version'
-
Print out the version of SED that is being run and a copyright notice,
then exit.
- `-h'
-
- `--help'
-
Print a usage message briefly summarizing these command-line options
and the bug-reporting address,
then exit.
- `-n'
-
- `--quiet'
-
- `--silent'
-
By default, SED will print out the pattern space
at then end of each cycle through the script.
These options disable this automatic printing,
and SED will only produce output when explicitly told to
via the
p
command.
- `-e script'
-
- `--expression=script'
-
Add the commands in script to the set of commands to be
run while processing the input.
- `-f script-file'
-
- `--file=script-file'
-
Add the commands contained in the file script-file
to the set of commands to be run while processing the input.
If no -e
, -f
, --expression
, or --file
options are given on the command-line,
then the first non-option argument on the command line is
taken to be the script to be executed.
If any command-line parameters remain after processing the above,
these parameters are interpreted as the names of input files to
be processed.
A file name of -
refers to the standard input stream.
The standard input will processed if no file names are specified.
Go to the first, previous, next, last section, table of contents.