March 2002
Beginner
504 pages
10h 47m
English
The most powerful text filtering tools in UNIX are a pair of oddly named programs, awk and sed. These programs allow shell programmers to easily edit text files and filter the output of commands using regular expressions. A regular expression is compact notation for describing sets of strings.
The stream editor, sed, was created as an editor for use with shell programs. As its name implies, sed is stream oriented; input is read, modified internally, and the modified version is printed out. The input file is not changed. This chapter covers the use of sed in shell scripts. Specifically we will examine the following topics:
Chapter 17, “Filtering Text with awk,” covers ...
Read now
Unlock full access