Concept Index

This is a general index of all issues discussed in this manual, with the exception of the sed commands and command-line options.

Jump to:   -

  0   ;   A   B   C   D   E   F   G   H   I   J   L   M   N   O   P   Q   R   S   T   U   V   W   X   Z  

Index Entry

 

Section

-

-e, example:

 

Overview

-e, example:

 

sed script overview

–expression, example:

 

Overview

-f, example:

 

Overview

-f, example:

 

sed script overview

–file, example:

 

Overview

-i, example:

 

Overview

-n, example:

 

Overview

-s, example:

 

Overview

0

0 address:

 

Reporting Bugs

;

;, command separator:

 

sed script overview

A

a, and semicolons:

 

sed script overview

Additional reading about sed:

 

Other Resources

addr1,+N:

 

Range Addresses

addr1,~N:

 

Range Addresses

address range, example:

 

sed script overview

Address, as a regular expression:

 

Regexp Addresses

Address, last line:

 

Numeric Addresses

Address, numeric:

 

Numeric Addresses

addresses, excluding:

 

Addresses overview

Addresses, in sed scripts:

 

Numeric Addresses

addresses, negating:

 

Addresses overview

addresses, numeric:

 

Addresses overview

addresses, range:

 

Addresses overview

addresses, regular expression:

 

Addresses overview

addresses, syntax:

 

sed script overview

alphabetic characters:

 

Character Classes and Bracket Expressions

alphanumeric characters:

 

Character Classes and Bracket Expressions

Append hold space to pattern space:

 

Other Commands

Append next input line to pattern space:

 

Other Commands

Append pattern space to hold space:

 

Other Commands

Appending text after a line:

 

Other Commands

B

b, joining lines with:

 

Branching and flow control

b, versus t:

 

Branching and flow control

back-reference:

 

Back-references and Subexpressions

Backreferences, in regular expressions:

 

The "s" Command

blank characters:

 

Character Classes and Bracket Expressions

bracket expression:

 

Character Classes and Bracket Expressions

Branch to a label, if s/// failed:

 

Extended Commands

Branch to a label, if s/// succeeded:

 

Programming Commands

Branch to a label, unconditionally:

 

Programming Commands

branching and n, N:

 

Branching and flow control

branching, infinite loop:

 

Branching and flow control

branching, joining lines:

 

Branching and flow control

Buffer spaces, pattern and hold:

 

Execution Cycle

Bugs, reporting:

 

Reporting Bugs

C

c, and semicolons:

 

sed script overview

case insensitive, regular expression:

 

Regexp Addresses

Case-insensitive matching:

 

The "s" Command

Caveat — #n on first line:

 

Common Commands

character class:

 

Character Classes and Bracket Expressions

character classes:

 

Character Classes and Bracket Expressions

classes of characters:

 

Character Classes and Bracket Expressions

Command groups:

 

Common Commands

Comments, in scripts:

 

Common Commands

Conditional branch:

 

Programming Commands

Conditional branch:

 

Extended Commands

control characters:

 

Character Classes and Bracket Expressions

Copy hold space into pattern space:

 

Other Commands

Copy pattern space into hold space:

 

Other Commands

cycle, restarting:

 

Branching and flow control

D

d, example:

 

sed script overview

Delete first line from pattern space:

 

Other Commands

digit characters:

 

Character Classes and Bracket Expressions

Disabling autoprint, from command line:

 

Command-Line Options

E

empty regular expression:

 

Regexp Addresses

Emptying pattern space:

 

Extended Commands

Emptying pattern space:

 

Reporting Bugs

Evaluate Bourne-shell commands:

 

Extended Commands

Evaluate Bourne-shell commands, after substitution:

 

The "s" Command

example, address range:

 

sed script overview

example, regular expression:

 

sed script overview

Exchange hold space with pattern space:

 

Other Commands

Excluding lines:

 

Addresses overview

exit status:

 

Exit status

exit status, example:

 

Exit status

Extended regular expressions, choosing:

 

Command-Line Options

Extended regular expressions, syntax:

 

ERE syntax

F

File name, printing:

 

Extended Commands

Files to be processed as input:

 

Command-Line Options

Flow of control in scripts:

 

Programming Commands

G

Global substitution:

 

The "s" Command

GNU extensions, /dev/stderr file:

 

The "s" Command

GNU extensions, /dev/stderr file:

 

Other Commands

GNU extensions, /dev/stdin file:

 

Other Commands

GNU extensions, /dev/stdin file:

 

Extended Commands

GNU extensions, /dev/stdout file:

 

Command-Line Options

GNU extensions, /dev/stdout file:

 

The "s" Command

GNU extensions, /dev/stdout file:

 

Other Commands

GNU extensions, 0 address:

 

Range Addresses

GNU extensions, 0 address:

 

Reporting Bugs

GNU extensions, 0,addr2 addressing:

 

Range Addresses

GNU extensions, addr1,+N addressing:

 

Range Addresses

GNU extensions, addr1,~N addressing:

 

Range Addresses

GNU extensions, branch if s/// failed:

 

Extended Commands

GNU extensions, case modifiers in s commands:

 

The "s" Command

GNU extensions, checking for their presence:

 

Extended Commands

GNU extensions, debug:

 

Command-Line Options

GNU extensions, disabling:

 

Command-Line Options

GNU extensions, emptying pattern space:

 

Extended Commands

GNU extensions, emptying pattern space:

 

Reporting Bugs

GNU extensions, evaluating Bourne-shell commands:

 

The "s" Command

GNU extensions, evaluating Bourne-shell commands:

 

Extended Commands

GNU extensions, extended regular expressions:

 

Command-Line Options

GNU extensions, g and number modifier:

 

The "s" Command

GNU extensions, I modifier:

 

The "s" Command

GNU extensions, I modifier:

 

Regexp Addresses

GNU extensions, in-place editing:

 

Command-Line Options

GNU extensions, in-place editing:

 

Reporting Bugs

GNU extensions, M modifier:

 

The "s" Command

GNU extensions, M modifier:

 

Regexp Addresses

GNU extensions, modifiers and the empty regular expression:

 

Regexp Addresses

GNU extensions, ‘n~m’ addresses:

 

Numeric Addresses

GNU extensions, quitting silently:

 

Extended Commands

GNU extensions, R command:

 

Extended Commands

GNU extensions, reading a file a line at a time:

 

Extended Commands

GNU extensions, returning an exit code:

 

Common Commands

GNU extensions, returning an exit code:

 

Extended Commands

GNU extensions, setting line length:

 

Other Commands

GNU extensions, special escapes:

 

Escapes

GNU extensions, special escapes:

 

Reporting Bugs

GNU extensions, special two-address forms:

 

Range Addresses

GNU extensions, subprocesses:

 

The "s" Command

GNU extensions, subprocesses:

 

Extended Commands

GNU extensions, to basic regular expressions:

 

BRE syntax

GNU extensions, to basic regular expressions:

 

BRE syntax

GNU extensions, to basic regular expressions:

 

BRE syntax

GNU extensions, to basic regular expressions:

 

BRE syntax

GNU extensions, to basic regular expressions:

 

BRE syntax

GNU extensions, to basic regular expressions:

 

Reporting Bugs

GNU extensions, two addresses supported by most commands:

 

Other Commands

GNU extensions, two addresses supported by most commands:

 

Other Commands

GNU extensions, two addresses supported by most commands:

 

Other Commands

GNU extensions, two addresses supported by most commands:

 

Other Commands

GNU extensions, unlimited line length:

 

Limitations

GNU extensions, writing first line to a file:

 

Extended Commands

Goto, in scripts:

 

Programming Commands

graphic characters:

 

Character Classes and Bracket Expressions

Greedy regular expression matching:

 

BRE syntax

Grouping commands:

 

Common Commands

H

hexadecimal digits:

 

Character Classes and Bracket Expressions

Hold space, appending from pattern space:

 

Other Commands

Hold space, appending to pattern space:

 

Other Commands

Hold space, copy into pattern space:

 

Other Commands

Hold space, copying pattern space into:

 

Other Commands

Hold space, definition:

 

Execution Cycle

Hold space, exchange with pattern space:

 

Other Commands

I

i, and semicolons:

 

sed script overview

In-place editing:

 

Reporting Bugs

In-place editing, activating:

 

Command-Line Options

In-place editing, Perl-style backup file names:

 

Command-Line Options

infinite loop, branching:

 

Branching and flow control

Inserting text before a line:

 

Other Commands

J

joining lines with branching:

 

Branching and flow control

joining quoted-printable lines:

 

Branching and flow control

L

labels:

 

Branching and flow control

Labels, in scripts:

 

Programming Commands

Last line, selecting:

 

Numeric Addresses

Line length, setting:

 

Command-Line Options

Line length, setting:

 

Other Commands

Line number, printing:

 

Other Commands

Line selection:

 

Numeric Addresses

Line, selecting by number:

 

Numeric Addresses

Line, selecting by regular expression match:

 

Regexp Addresses

Line, selecting last:

 

Numeric Addresses

List pattern space:

 

Other Commands

lower-case letters:

 

Character Classes and Bracket Expressions

M

Mixing g and number modifiers in the s command:

 

The "s" Command

multiple files:

 

Overview

multiple sed commands:

 

sed script overview

N

n, and branching:

 

Branching and flow control

N, and branching:

 

Branching and flow control

named character classes:

 

Character Classes and Bracket Expressions

newline, command separator:

 

sed script overview

Next input line, append to pattern space:

 

Other Commands

Next input line, replace pattern space with:

 

Common Commands

Non-bugs, 0 address:

 

Reporting Bugs

Non-bugs, in-place editing:

 

Reporting Bugs

Non-bugs, localization-related:

 

Reporting Bugs

Non-bugs, localization-related:

 

Reporting Bugs

Non-bugs, N command on the last line:

 

Reporting Bugs

Non-bugs, regex syntax clashes:

 

Reporting Bugs

numeric addresses:

 

Addresses overview

numeric characters:

 

Character Classes and Bracket Expressions

O

omitting labels:

 

Branching and flow control

output:

 

Overview

output, suppressing:

 

Overview

P

p, example:

 

Overview

paragraphs, processing:

 

Multiline techniques

parameters, script:

 

Overview

Parenthesized substrings:

 

The "s" Command

Pattern space, definition:

 

Execution Cycle

Portability, comments:

 

Common Commands

Portability, line length limitations:

 

Limitations

Portability, N command on the last line:

 

Reporting Bugs

POSIXLY_CORRECT behavior, bracket expressions:

 

Character Classes and Bracket Expressions

POSIXLY_CORRECT behavior, enabling:

 

Command-Line Options

POSIXLY_CORRECT behavior, escapes:

 

Escapes

POSIXLY_CORRECT behavior, N command:

 

Reporting Bugs

Print first line from pattern space:

 

Other Commands

printable characters:

 

Character Classes and Bracket Expressions

Printing file name:

 

Extended Commands

Printing line number:

 

Other Commands

Printing text unambiguously:

 

Other Commands

processing paragraphs:

 

Multiline techniques

punctuation characters:

 

Character Classes and Bracket Expressions

Q

Q, example:

 

Exit status

q, example:

 

sed script overview

Quitting:

 

Common Commands

Quitting:

 

Extended Commands

quoted-printable lines, joining:

 

Branching and flow control

R

range addresses:

 

Addresses overview

range expression:

 

Character Classes and Bracket Expressions

Range of lines:

 

Range Addresses

Range with start address of zero:

 

Range Addresses

Read next input line:

 

Common Commands

Read text from a file:

 

Other Commands

Read text from a file:

 

Extended Commands

regex addresses and input lines:

 

Regexp Addresses

regex addresses and pattern space:

 

Regexp Addresses

regular expression addresses:

 

Addresses overview

regular expression, example:

 

sed script overview

Replace hold space with copy of pattern space:

 

Other Commands

Replace pattern space with copy of hold space:

 

Other Commands

Replacing all text matching regexp in a line:

 

The "s" Command

Replacing only nth match of regexp in a line:

 

The "s" Command

Replacing selected lines with other text:

 

Other Commands

Requiring GNU sed:

 

Extended Commands

restarting a cycle:

 

Branching and flow control

S

Sandbox mode:

 

Command-Line Options

script parameter:

 

Overview

Script structure:

 

sed script overview

Script, from a file:

 

Command-Line Options

Script, from command line:

 

Command-Line Options

sed commands syntax:

 

sed script overview

sed commands, multiple:

 

sed script overview

sed script structure:

 

sed script overview

Selecting lines to process:

 

Numeric Addresses

Selecting non-matching lines:

 

Addresses overview

semicolons, command separator:

 

sed script overview

Several lines, selecting:

 

Range Addresses

Slash character, in regular expressions:

 

Regexp Addresses

space characters:

 

Character Classes and Bracket Expressions

Spaces, pattern and hold:

 

Execution Cycle

Special addressing forms:

 

Range Addresses

standard input:

 

Overview

Standard input, processing as input:

 

Command-Line Options

standard output:

 

Overview

stdin:

 

Overview

stdout:

 

Overview

Stream editor:

 

Introduction

subexpression:

 

Back-references and Subexpressions

Subprocesses:

 

The "s" Command

Subprocesses:

 

Extended Commands

Substitution of text, options:

 

The "s" Command

suppressing output:

 

Overview

syntax, addresses:

 

sed script overview

syntax, sed commands:

 

sed script overview

T

t, joining lines with:

 

Branching and flow control

t, versus b:

 

Branching and flow control

Text, appending:

 

Other Commands

Text, deleting:

 

Common Commands

Text, insertion:

 

Other Commands

Text, printing:

 

Common Commands

Text, printing after substitution:

 

The "s" Command

Text, writing to a file after substitution:

 

The "s" Command

Transliteration:

 

Other Commands

U

Unbuffered I/O, choosing:

 

Command-Line Options

upper-case letters:

 

Character Classes and Bracket Expressions

Usage summary, printing:

 

Command-Line Options

V

Version, printing:

 

Command-Line Options

W

whitespace characters:

 

Character Classes and Bracket Expressions

Working on separate files:

 

Command-Line Options

Write first line to a file:

 

Extended Commands

Write to a file:

 

Other Commands

X

xdigit class:

 

Character Classes and Bracket Expressions

Z

Zero, as range start address:

 

Range Addresses

Jump to:   -

  0   ;   A   B   C   D   E   F   G   H   I   J   L   M   N   O   P   Q   R   S   T   U   V   W   X   Z