sed ( 1 ) USER COMMANDSsed ( 1 )


NAME

sed - stream editor

SYNOPSIS

sed [ options ] [ file ... ]

DESCRIPTION

sed is a stream editor that reads one or more text files, makes editing changes according to a script of editing commands, and writes the results to standard output. The script is obtained from either the script operand string or a combination of the option-arguments from the --expression and --file options.

OPTIONS

-b, --strip-blanks
Strip leading blanks from a, c, and i text.
-e, --expression=script
Append the editing commands in script to the end of the the editing command script. script may contain more than one newline separated command.
-f, --file=script-file
Append the editing commands in script-file to the end of the the editing command script.
-n, --quiet|silent
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 will be written.
-A, --augmented
Enable augmented regular expressions; this includes negation and conjunction.
-E, --extended
Enable extended regular expressions, i.e., egrep(1) style.
-O, --lenient
Enable lenient regular expression interpretation. This is the default if getconf CONFORMANCE is not standard.
-S, --strict
Enable strict regular expression interpretation. This is the default if getconf CONFORMANCE is standard. You'd be suprised what the lenient mode lets by.
-d
Ignored by this implementation.

SEE ALSO

ed(1), grep(1), regex(3)

IMPLEMENTATION

version
sed (AT&T Research) 2007-11-19
author
Glenn Fowler <gsf@research.att.com>
author
Doug McIlroy <doug@research.bell-labs.com>
copyright
Copyright © 1995-2008 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt