Skip to content

Latest commit

 

History

History
30 lines (13 loc) · 1.01 KB

awk.md

File metadata and controls

30 lines (13 loc) · 1.01 KB

记录一下 AWK 的使用方法

历史

AWK是贝尔实验室1977年搞出来的文本处理工具。

之所以叫AWK是因为其取了三位创始人 Alfred Aho,Peter Weinberger, 和 Brian Kernighan 的Family Name的首字符

Structure

"AWK is a language for processing text files. A file is treated as a sequence of records, and by default each line is a record. Each line is broken up into a sequence of fields, so we can think of the first word in a line as the first field, the second word as the second field, and so on. An AWK program is of a sequence of pattern-action statements. AWK reads the input a line at a time. A line is scanned for each pattern in the program, and for each pattern that matches, the associated action is executed." - Alfred V. Aho""

参考资料

推荐