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|X, --augmented

Enable augmented regular expressions; this includes negation and conjunction.
-E|r, --extended|regexp-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|posix

Enable strict regular expression interpretation. This is the default if getconf CONFORMANCE is standard. You'd be suprised what the lenient mode lets by.
-m
multi-digit-reference?Enable \dd multi-digit backreferences.
-d
Ignored by this implementation.
-u, --unbuffered

Unbuffered output.

SEE ALSO

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

IMPLEMENTATION

version

sed (AT&T Research) 2012-03-28
author

Glenn Fowler <glenn.s.fowler@gmail.com>
author

Doug McIlroy <doug@research.bell-labs.com >
copyright

Copyright © 1995-2012 AT&T Intellectual Property
license

http://www.eclipse.org/org/documents/epl-v10.html