Home | Amazing | Today | Tags | Publishers | Years | Account | Search 
The AWK Programming Language

Buy
The AWK Programming Language, 9780201079814 (020107981X), Addison Wesley, 1988

Computer users spend a lot of time doing simple, mechanical data manipulation - changing the format of data, checking its validity, finding items with some property, adding up numbers, printing reports, and the like. All of these jobs ought to be mechanized, but it's a real nuisance to have to write a specialpurpose program in a standard language like C or Pascal each time such a task comes up.

Awk is a programming language that makes it possible to handle such tasks with very short programs, often only one or two lines long. An awk program is a sequence of patterns and actions that tell what to look for in the input data and what to do when it's found. Awk searches a set of files for lines matched by 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 the 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 smaller 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 reprace a host of specialized tools or programs.

The same brevity of expression and convenience of operations make awk valuable for prototyping larger programs. One starts with a few lines, then refines the program until it does the desired job, experimenting with designs by trying alternatives quickly. Since programs are short, it's easy to get started, and easy to start over when experience suggests a different direction. And it's straightforward to translate an awk program into another language once the design is right.

(HTML tags aren't allowed.)

Wind and Solar Power Systems: Design, Analysis, and Operation, Second Edition
Wind and Solar Power Systems: Design, Analysis, and Operation, Second Edition
- K.G. Craig, Journal of Environmental Quality, 2006

Throughout the text, it is abundantly clear the author is a knowledgeable engineer with considerable experience in the diverse sciences and technologies that provide the foundations of wind and photovoltaic power generation. It is also obvious that he is an experienced teacher, because
...
UX Optimization: Combining Behavioral UX and Usability Testing Data to Optimize Websites
UX Optimization: Combining Behavioral UX and Usability Testing Data to Optimize Websites
Combine two typically separate sources of data?behavioral quantitative data and usability testing qualitative data?into a powerful single tool that helps improve your organization’s website by increasing conversion and ROI. The combination of the what is happening data of website activity, coupled with the...
Audiovisual Archives: Digital Text and Discourse Analysis (ISTE)
Audiovisual Archives: Digital Text and Discourse Analysis (ISTE)

Today, audiovisual archives and libraries have become very popular especially in the field of collecting, preserving and transmitting cultural heritage. However, the data in these archives or libraries - videos, images, soundtracks, etc. - constitute as such only potential cognitive resources for a given public (or “target...


Essential ActionScript 3.0
Essential ActionScript 3.0
ActionScript 3.0 is a huge upgrade to Flash's programming language. The enhancements to ActionScript's performance, feature set, ease of use, cleanliness, and sophistication are considerable. Essential ActionScript 3.0 focuses on the core language and object-oriented programming, along with the Flash Player API. Essential...
IQ and Aptitude Tests: Assess your verbal, numerical, and spatial reasoning skills
IQ and Aptitude Tests: Assess your verbal, numerical, and spatial reasoning skills
An aptitude test is designed to measure your potential for achievement, whilst an IQ test is a standardized test designed to measure intelligence. You are now increasingly likely to encounter both types of test in recruitment, selection and assessment procedures.
 
IQ and Aptitude Tests contains 400...
Fundamental Data Compression
Fundamental Data Compression
Fundamental Data Compression provides all the information students need to be able to use this essential technology in their future careers. A huge, active research field, and a part of many people's everyday lives, compression technology is an essential part of today's Computer Science and Electronic Engineering courses.
...
©2021 LearnIT (support@pdfchm.net) - Privacy Policy