A Practical Guide to UNIX for Mac OS X Users

Chapter 15. The sed Editor

IN THIS CHAPTER

Syntax

642

Arguments

642

Options

642

Editor Basics

642

Addresses

643

Instructions

643

Control Structures

645

The Pattern Space and the Hold Space

645

Examples

646

The sed (stream editor) utility is a batch (noninteractive) editor. It transforms an input stream that can come from a file or standard input. It is frequently used as a filter in a pipe. Because it makes only one pass through its input, sed is more efficient than an interactive editor such as ed.

Категории