The AWK Programming Language. 2 Ed

The AWK Programming Language. 2 Ed

The AWK Programming Language. 2 Ed
Автор: Aho Alfred V., Kernighan Brian W., Weinberger Peter J.
Дата выхода: 2023
Издательство: Pearson Education Limited
Количество страниц: 671
Размер файла: 6.8 MB
Тип файла: PDF
Добавил: codelibs
 Проверить на вирусы

Cover Page....2

About This eBook....3

Halftitle Page....4

Title Page....7

Copyright Page....8

Dedication Page....10

Contents....11

Preface....14

Organization of the Book....16

The Examples....17

Evolution of Awk....18

Acknowledgments....20

Acknowledgments for the First Edition....20

1. An Awk Tutorial....23

1.1 Getting Started....23

1.2 Simple Output....28

1.3 Formatted Output....31

1.4 Selection....34

1.5 Computing with Awk....37

1.6 Control-Flow Statements....42

1.7 Arrays....45

1.8 Useful One-liners....46

1.9 What Next?....49

2. Awk in Action....51

2.1 Personal Computation....51

2.2 Selection....54

2.3 Transformation....57

2.4 Summarization....61

2.5 Personal Databases....62

2.6 A Personal Library....66

2.7 Summary....70

3. Exploratory Data Analysis....71

3.1 The Sinking of the Titanic....72

3.2 Beer Ratings....80

3.3 Grouping Data....83

3.4 Unicode Data....86

3.5 Basic Graphs and Charts....89

3.6 Summary....92

4. Data Processing....93

4.1 Data Transformation and Reduction....93

4.2 Data Validation....101

4.3 Bundle and Unbundle....106

4.4 Multiline Records....107

4.5 Summary....115

5. Reports and Databases....116

5.1 Generating Reports....116

5.2 Packaged Queries and Reports....124

5.3 A Relational Database System....128

5.4 Summary....139

6. Processing Words....140

6.1 Random Text Generation....140

6.2 Interactive Text-Manipulation....147

6.3 Text Processing....152

6.4 Making an Index....161

6.5 Summary....169

7. Little Languages....170

7.1 An Assembler and Interpreter....171

7.2 A Language for Drawing Graphs....176

7.3 A Sort Generator....179

7.4 A Reverse-Polish Calculator....182

7.5 A Different Approach....186

7.6 A Recursive-Descent Parser for Arithmetic Expressions....187

7.7 A Recursive-Descent Parser for a Subset of Awk....191

7.8 Summary....197

8. Experiments with Algorithms....199

8.1 Sorting....200

8.2 Profiling....217

8.3 Topological Sorting....221

8.4 Make: A File Updating Program....228

8.5 Summary....233

9. Epilogue....235

9.1 Awk as a Language....236

9.2 Performance....239

9.3 Conclusion....245

Appendix A: Awk Reference Manual....248

A.1 Patterns....251

A.2 Actions....265

A.3 User-Defined Functions....293

A.4 Output....294

A.5 Input....301

A.6 Interaction with Other Programs....308

A.7 Summary....310

Index....311

Code Snippets....347

Awk was developed in 1977 at Bell Labs, and it's still a remarkably useful tool for solving a wide variety of problems quickly and efficiently. In this update of the classic Awk book, the creators of the language show you what Awk can do and teach you how to use it effectively.

Here's what programmers today are saying: "I love Awk." "Awk is amazing." "It is just so damn good." "Awk is just right." "Awk is awesome." "Awk has always been a language that I loved."

It's easy: "Simple, fast and lightweight." "Absolutely efficient to learn because there isn't much to learn." "3-4 hours to learn the language from start to finish." "I can teach it to new engineers in less than 2 hours."

It's productive: "Whenever I need to do a complex analysis of a semi-structured text file in less than a minute, Awk is my tool." "Learning Awk was the best bang for buck investment of time in my entire career." "Designed to chew through lines of text files with ease, with great defaults that minimize the amount of code you actually have to write to do anything."

It's always available: "AWK runs everywhere." "A reliable Swiss Army knife that is always there when you need it." "Many systems lack Perl or Python, but include Awk."

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.


Похожее:

Список отзывов:

Нет отзывов к книге.