A Practical Guide to LinuxR Commands, Editors, and Shell Programming

 < Day Day Up > 

Chapter 13. The sed Editor

IN THIS CHAPTER

Syntax 564

Arguments 564

Options 564

Editor Basics 565

Addresses 565

Instructions 566

Control Structures 567

The Pattern Space and the Hold Space 568

Examples 568

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. This chapter describes GNU sed.

     < Day Day Up > 

    Категории