The AWK Programming Language

Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger, 柯必德

出版社

Pearson

出版时间

1988-01-11

ISBN

9780201079814

评分

★★★★★
书籍介绍
Originally developed by Alfred Aho, Brian Kernighan, and Peter Weinberger in 1977, AWK is a pattern-matching language for writing short programs to perform common data-manipulation tasks. In 1985, a new version of the language was developed, incorporating additional features such as multiple input files, dynamic regular expressions, and user-defined functions. This new version is available for both Unix and MS-DOS. This is the first book on AWK. It begins with a tutorial that shows how easy AWK is to use. The tutorial is followed by a comprehensive manual for the new version of AWK. Subsequent chapters illustrate the language by a range of useful applications, such as: *Retrieving, transforming, reducing, and validating data *Managing small, personal databases *Text processing *Little languages *Experimenting with algorithms The examples illustrates the book's three themes: showing how to use AWK well, demonstrating AWK's versatility, and explaining how common computing operations are done. In addition, the book contains two appendixes: summary of the language, and answers to selected exercises. 020107981XB04062001
AI导读
核心看点
  • AWK语言三位发明者亲笔撰写,权威经典。
  • 从入门教程到综合手册,循序渐进讲解语法。
  • 涵盖数据处理、文本分析及小型数据库应用。
适合谁读
  • Linux/Unix系统管理员及Shell脚本开发者。
  • 需要进行高效文本处理与数据清洗的程序员。
  • 希望掌握AWK精髓的计算机专业学生。
读前提醒
  • 建议边读边写代码,在实践中纠正知识误点。
  • 前几章基础重要,后续章节可当作索引查阅。
  • 可参考GitHub上的高质量中文翻译版本阅读。
读者共识
  • 公认学习AWK的最佳书籍,简洁明了不啰嗦。
  • 文笔极佳,像艺术品一样娓娓道来,不枯燥。
  • 掌握AWK与Sed可通吃文本处理,效率大增。

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "As we said earlier, this is a long chapter, packed with details, and you are dedicated indeed if you have read every word to get here. You will find that it pays to go back and re-read sections from time to time, either to see precisely how something works, or because one of the examples in later ch"
  • "FNR, NF and NR are set each time a new record is read"
  • "FNR: The ordinal number of the current record in the current file. NR: The ordinal number of the current record from the the start of input."
用户评论
厉害厉害
学shell编程必须要掌握的工具,学懂了就可以转学perl了
剩下的内容就当索引了
第6,7章真是精彩。
像kernighan其它的作品一样,是一件艺术品。
Really for short programs
跟作者的其他书一样, 简约而不简单. 我最近正在翻译这本书, 已经到第八章了, 如果有人感兴趣想加入, 欢迎. https://github.com/wuzhouhui/awk
感觉读前三章足矣,后面的内容现在都有更加专门的工具
Amazon上$6刀买的旧书,几乎全新,又带着点年代感的泛黄。文笔简洁清楚,花一天时间就可以读完。相比零敲碎打地从网上找脚本例子、搜stackoverfolow,系统读完这本书后基础牢固,感觉思如泉涌,几乎可以拿它完成所有log处理和数据分析工作。AWK是一个学完终身受用的工具,而你唯一需要读的就只是这本书。
简单明了,重点突出,看完用awk处理基本文本问题不在话下。
收藏