|Back to search results|
Photo contributed by #M#.
|For people who create and modify text files, "sed and "awk are power tools for editing. Most of the things that you can do with these programs can be done interactively with a text editor. However, using "sed and "awk can save many hours of repetitive work in achieving the same result.To master "sed and "awk you must thoroughly understand UNIX regular expressions, and understand the syntax of "sed and "awk commands. This handbook treats regular expressions as a foundation for learning about "sed and "awk and contains a comprehensive treatment of "sed and "awk syntax. It emphasizes the kinds of practical problems that "sed and "awk can help users to solve, with many useful example scripts and programs.Contents include: A tutorial showing basic operations of "sed and "awkRegular expression syntax and examplesBasic and advanced "sed commandsFeatures of "awk (plus "gawk and "nawk)Common programming constructsAdvanced topicsUser-contributed scripts|
The book begins with an overview and a tutorial that demonstrate a progression in functionality from grep to sed to awk. sed and awk share a similar command-line syntax, accepting user instructions in the form of a script. Because all three programs use UNIX regular expressions, an entire chapter is devoted to understanding UNIX regular expression syntax. Next, the book describes how to write sed scripts. After getting started by writing a few simple scripts, you'll learn other basic commands that parallel manual editing actions, as well as advanced commands that introduce simple programming constructs. Among the advanced commands are those that manipulate the hold space, a set-aside temporary buffer. The second part of the book has been extensively revised to include POSIX awk as well as coverage of three freely available and three commercial versions of awk. The book introduces the primary features of the awk language and how to write simple scripts. You'll also learn: common programming constructs; how to use awk's built-in functions; how to write user-defined functions; debugging techniques for awk programs; how to develop an application that processes an index, demonstrating much of the power of awk; and FTP and contact information for obtaining various versions of awk. Also included is a miscellany of user-contributed scripts that demonstrate a wide range of sed and awk scripting styles and techniques.
|Number Of Pages||414 pages|
|Series||Nutshell Handbooks Ser.|
|Publisher||O'Reilly Media, Incorporated|