دانلود کتاب The AWK Programming Language, 2nd Edition (Early Release)
by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
|
عنوان فارسی: زبان برنامه نویسی AWK، نسخه دوم (نسخه اولیه) |
دانلود کتاب
جزییات کتاب
AWK is a programming language that makes it possible to handle simple computations with short programs, often only one or two lines long. An AWK program is a sequence of patterns and actions that specify what to look for in the input data and what to do when it’s found. Awk searches a set of files that contain text (but not non-text formats like Word documents, spreadsheets, PDFs and so on) for lines that match any of the patterns; when a matching line is found, the corresponding action is performed. A pattern can select lines by combinations of regular expressions and comparison operations on strings, numbers, fields, variables, and array elements. Actions may perform arbitrary processing on selected lines; the action language looks like C but there are no declarations, and strings and numbers are built-in data types.
AWK scans text input files and splits each input line into fields automatically. Because so many things are automatic — input, field splitting, storage management, initialization — Awk programs are usually much shorter than they would be in a more conventional language. Thus one common use of AWK is for the kind of data manipulation suggested above. Programs, a line or two long, are composed at the keyboard, run once, then discarded. In effect, AWK is a general-purpose programmable tool that can replace a host of specialized tools or programs.
Perform exploratory data analysis
Retrieve, validate, transform, and summarize data-the tasks AWK was originally designed for:
Manage small databases, create reports, and write queries
Generate text and streamline document preparation
Write specialized "little languages" for narrow domains
Express, experiment with, and test algorithms
For programmers on Unix, Linux, MacOS, and Windows platforms, this updated guide is the most reliable source for learning how to tap into the power of AWK.