UNIX AWK and SED Programmer's Interactive Workbook

UNIX AWK and SED Programmer's Interactive Workbook

5 (1 rating by Goodreads)
By (author) 

List price: US$37.49

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks


The quick, friendly, hands-on tutorial on UNIX programming with awk, sed and grep -- -- with exclusive access to an up-to-the-minute Web-based training site! Learn step-by-step how to solve practical problems with awk, sed and grep. Begin with a hands-on introduction to regular expressions and grep. Through interactive Labs, learn the fundamentals of sed, including addressing, commands, scripting and more. Walk step-by-step through the Awk language, writing simple programs, understanding data types, statements, expressions, patterns, actions, functions, arrays and I/O. Finally, put it all together with the Awk utility, learning techniques for printing, computation, and text processing. The accompanying Web site includes a Virtual Study Lounge where you can meet authors and other users; interactive testing modules that offer instant feedback; bonus projects and solutions; updates, new info, feedback areas and more.
show more

Product details

  • Paperback | 500 pages
  • 177.5 x 235 x 45.7mm | 1,318.76g
  • Prentice Hall
  • Upper Saddle River, United States
  • English
  • Workbook
  • 0130826758
  • 9780130826756

Table of contents

1. Regular Expressions and Metacharacters.

L A B 1.1 Using the period and backslash metacharacters. Test Your Thinking.

2. Character Class, Hyphen, and Caret Metacharacters.

L A B 2.1 The Character Class, Hyphen, and Caret Metacharacters. Test Your Thinking.

3. What Is Grep and What Does It Do?

L A B 3.1 Getting Started with Grep. Test Your Thinking.

4. Using Grep with Regular Expressions.

L A B 4.1 Regular Expressions and Grep. L A B 4.2 fgrep and egrep. L A B. Using the Anchor Metacharacter. Test Your Thinking.

5. Introduction to sed.

L A B 5.1 Getting Started with sed. Test Your Thinking.

6. Sed Syntax and Addressing.

L A B 6.1 Sed Syntax and Addressing. Test Your Thinking.

7. Sed Commands.

L A B 7.1 The Substitution Command. L A B 7.2 The Delete Command. L A B 7.3 The Append, Insert, and Change Commands. L A B 7.4 The List and Transform Commands. L A B 7.5 The Print and Next Commands. L A B 7.6 The Read and Write Commands. Test Your Thinking.

8. Multiline Pattern Space Commands.

L A B 8.1 The Multiline Next, Delete, and Print Commands. Test Your Thinking.

9. An Awk Program.

L A B 9.1 An Example Awk Program. L A B 9.2 The Structure of an Awk Program. L A B 9.3 Invoking an Awk Program. Test Your Thinking.

10. Basic Awk Language Elements.

L A B 10.1 Awk Statements and Expressions. L A B 10.2 Awk Strings. L A B 10.3 Awk Numbers. L A B 10.4 Coercion. L A B 10.5 awk Assignment operator. Test Your Thinking.

11. Variables.

L A B 11.1 Field Variables. L A B 11.2 User-Defined Variables. L A B 11.3 Built-In Variables. Test Your Thinking.

12. Operators.

L A B 12.1 Arithmetic Operators. L A B 12.2 the Assignment Statement. L A B 12.3 Logical and Relational Operators, and Conditional Expressions. Test Your Thinking.

13. Built-in Functions, Precedence, Associativity, and Machine Limits.

L A B 13.1 Built-In Arithmetic Functions. L A B 13.2 Built-In String Functions. L A B 13.3 Patterns, Precedence, Associativity, and Machine Limits. Test Your Thinking.

14. Awk Control Flow.

L A B 14.1 The If-Else Statement. L A B 14.2 The While and Do Statements. L A B 14.3 The For Statement. L A B 14.4 Loop and Program Control. Test Your Thinking.

15. Awk Arrays and Functions.

L A B 15.1 Awk Arrays. L A B 15.2 Awk User-Defined Functions. Test Your Thinking.

16. Advanced Input and Output.

L A B 16.1 The printf and sprintf Statements. L A B 16.2 Output into Pipes, Files, and the Getline Function. Test Your Thinking.

APPENDIX A Answers to Self-Review Questions.

APPENDIX B Awk, Sed, and Grep Reference.

show more

About Peter Patsis

Peter Patsis is a systems engineer at Digital Equipment Corporation. He resides in Shrewsbury, MA.
show more

Rating details

1 ratings
5 out of 5 stars
5 100% (1)
4 0% (0)
3 0% (0)
2 0% (0)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X