Muutke küpsiste eelistusi

Effective Awk Programming: Text Processing & Pattern Matching 3rd edition [Raamat]

  • Formaat: Book, 420 pages
  • Ilmumisaeg: 26-Jun-2001
  • Kirjastus: O'Reilly Media
  • ISBN-10: 0596000707
  • ISBN-13: 9780596000707
Teised raamatud teemal:
  • Raamat
  • Hind: 55,23 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Book, 420 pages
  • Ilmumisaeg: 26-Jun-2001
  • Kirjastus: O'Reilly Media
  • ISBN-10: 0596000707
  • ISBN-13: 9780596000707
Teised raamatud teemal:
"Effective AWK Programming" covers every aspect of the AWK 3.0.3 and 3.0.4 language. It offers up-to-date coverage of the POSIX standard for AWK, and distinguishes standard AWK features from GNU AWK-specific features. The author sheds light on "dark corners" of the language, devotes two chapters to example programs, and includes a summary of how the AWK language evolved.

"Effective AWK Programming" covers every aspect of the AWK 3.0.3 and 3.0.4 language. It offers up-to-date coverage of the POSIX standard for AWK, and distinguishes standard AWK features from GNU AWK-specific features. The author sheds light on "dark corners" of the language, devotes two chapters to example programs, and includes a summary of how the AWK language evolved.


Effective awk Programming,3rd Edition, focuses entirely on awk, exploring it in the greatest depth of the three awk titles we carry. It's an excellent companion piece to the more broadly focused second edition.

This book provides complete coverage of the gawk 3.1 language as well as the most up-to-date coverage of the POSIX standard for awk available anywhere. Author Arnold Robbins clearly distinguishes standard awk features from GNU awk (gawk)-specific features, shines light into many of the "dark corners" of the language (areas to watch out for when programming), and devotes two full chapters to example programs. A brand new chapter is devoted to TCP/IP networking with gawk. He includes a summary of how the awk language evolved.

The book also covers:

  • Internationalization of gawk
  • Interfacing to i18n at the awk level
  • Two-way pipes
  • TCP/IP networking via the two-way pipe interface
  • The new PROCINFO array, which provides information about running gawk
  • Profiling and pretty-printing awk programs

In addition to covering the awk language, this book serves as the official "User's Guide" for the GNU implementation of awk (gawk), describing in an integrated fashion the extensions available to the System V Release 4 version of awk that are also available in gawk.

As the official gawk User's Guide, this book will also be available electronically, and can be freely copied and distributed under the terms of the Free Software Foundation's Free Documentation License (FDL). A portion of the proceeds from sales of this book will go to the Free Software Foundation to support further development of free and open source software.

The third edition of Effective awk Programming is a GNU Manual and is published by O'Reilly & Associates under the Free Software Foundation's Free Documentation License (FDL). A portion of the proceeds from the sale of this book is donated to the Free Software Foundation to further development of GNU software. This book is also available in electronic form; you have the freedom to modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.

Arvustused

'After reading this book you will immediately be rushing to your keyboard to try it out. Some useful hits and tips. Array processing is also covered here. It is a good book. However nothing replaces experience. So read it and try it out.' plomax@oriole.com 'Highly recommended.' - Peter S Tillier, Cvu, December 2001

Foreword xiii
Preface xv
I. The awk Language and gawk 1(204)
Getting Started with awk
3(16)
How to Run awk Programs
4(6)
Datafiles for the Examples
10(1)
Some Simple Examples
11(2)
An Example with Two Rules
13(1)
A More Complex Example
14(1)
awk Statements Versus Lines
15(2)
Other Features of awk
17(1)
When to Use awk
17(2)
Regular Expressions
19(14)
How to Use Regular Expressions
19(2)
Escape Sequences
21(2)
Regular Expression Operators
23(3)
Using Character Lists
26(2)
gawk-Specific Regexp Operators
28(1)
Case Sensitivity in Matching
29(2)
How Much Text Matches?
31(1)
Using Dynamic Regexps
31(2)
Reading Input Files
33(25)
How Input Is Split into Records
33(3)
Examining Fields
36(2)
Non-constant Field Numbers
38(1)
Changing the Contents of a Field
39(2)
Specifying How Fields Are Separated
41(5)
Reading Fixed-Width Data
46(2)
Multiple-Line Records
48(3)
Explicit Input with getline
51(7)
Printing Output
58(20)
The print Statement
58(1)
Examples of print Statements
59(1)
Output Separators
60(1)
Controlling Numeric Output with print
61(1)
Using printf Statements for Fancier Printing
62(6)
Redirecting Output of print and printf
68(2)
Special Filenames in gawk
70(4)
Closing Input and Output Redirections
74(4)
Expressions
78(25)
Constant Expressions
79(2)
Using Regular Expression Constants
81(1)
Variables
82(2)
Conversion of Strings and Numbers
84(1)
Arithmetic Operators
85(2)
String Concatenation
87(1)
Assignment Expressions
88(4)
Increment and Decrement Operators
92(1)
True and False in awk
93(1)
Variable Typing and Comparison Expressions
94(3)
Boolean Expressions
97(2)
Conditional Expressions
99(1)
Function Calls
99(2)
Operator Precedence (How Operators Nest)
101(2)
Patterns, Actions, and Variables
103(26)
Pattern Elements
103(6)
Using Shell Variables in Programs
109(1)
Actions
110(1)
Control Statements in Actions
111(9)
Built-in Variables
120(9)
Arrays in awk
129(13)
Introduction to Arrays
130(2)
Referring to an Array Element
132(1)
Assigning Array Elements
133(1)
Basic Array Example
133(1)
Scanning All Elements of an Array
134(1)
The delete Statement
135(1)
Using Numbers to Subscript Arrays
136(1)
Using Uninitialized Variables as Subscripts
137(1)
Multidimensional Arrays
138(1)
Scanning Multidimensional Arrays
139(1)
Sorting Array Values and Indices with gawk
140(2)
Functions
142(32)
Built-in Functions
142(24)
User-Defined Functions
166(8)
Internationalization with gawk
174(11)
Internationalization and Localization
174(1)
GNU gettext
175(2)
Internationalizing awk Programs
177(2)
Translating awk Programs
179(3)
A Simple Internationalization Example
182(1)
gawk Can Speak Your Language
183(2)
Advanced Features of gawk
185(9)
Allowing Nondecimal Input Data
185(1)
Two-Way Communications with Another Process
186(2)
Using gawk for Network Programming
188(1)
Using gawk with BSD Portals
189(1)
Profiling Your awk Programs
190(4)
Running awk and gawk
194(11)
Invoking awk
194(1)
Command-Line Options
195(5)
Other Command-Line Arguments
200(1)
The AWKPATH Environment Variable
201(1)
Obsolete Options and/or Features
202(1)
Known Bugs in gawk
203(2)
II. Using awk and gawk 205(120)
A Library of awk Functions
207(30)
Naming Library Function Global Variables
208(2)
General Programming
210(8)
Datafile Management
218(4)
Processing Command-Line Options
222(6)
Reading the User Database
228(4)
Reading the Group Database
232(5)
Practical awk Programs
237(44)
Running the Example Programs
237(1)
Reinventing Wheels for Fun and Profit
238(21)
A Grab Bag of awk Programs
259(22)
Internetworking with gawk
281(44)
Networking with gawk
281(24)
Some Applications and Techniques
305(18)
Related Links
323(2)
III. Appendixes 325(66)
A. The Evolution of the awk Language
327(10)
B. Installing gawk
337(13)
C. Implementation Notes
350(17)
D. Basic Programming Concepts
367(7)
E. GNU General Public License
374(8)
F. GNU Free Documentation License
382(9)
Glossary 391(12)
Index 403


Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has been working with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. He has been a heavy awk user since 1987, when he became involved with gawk, the GNU project's version of awk. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for awk. He is currently the maintainer of gawk and its documentation. He is also coauthor of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel. Return to Effective awk Programming