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.)

Advanced J2EE Platform Development: Applying Integration Tier Patterns
Advanced J2EE Platform Development: Applying Integration Tier Patterns
A proven Java(TM)-based approach to standardizing and streamlining legacy migration

This book focuses on the key challenges developers face when using the Java 2 platform Enterprise Edition (J2EE) to encapsulate legacy applications for delivery in a multi-tier Internet environment. Leading Sun architects Torbjoern Dahlen and Thorbioern Fritzon...

CIW: Security Professional Study Guide Exam 1D0-470 (With CD-ROM)
CIW: Security Professional Study Guide Exam 1D0-470 (With CD-ROM)

Here’s the book you need to prepare for Exam 1D0-470, CIW Security Professional. This Study Guide provides:

  • In-depth coverage of official exam objectives
  • Practical information on security concepts and practices
  • Hundreds of...
Statistical Mechanics of Learning
Statistical Mechanics of Learning
The effort to build machines that are able to learn and undertake tasks such as datamining, image processing and pattern recognition has led to the development of artificial neural networks in which learning from examples may be described and understood. The contribution to this subject made over the past decade by researchers applying the...

The Nordstrom Way to Customer Service Excellence: A Handbook For Implementing Great Service in Your Organization
The Nordstrom Way to Customer Service Excellence: A Handbook For Implementing Great Service in Your Organization
The Nordstrom Way to Customer Service Excellence describes how Nordstrom earned its legendary reputation—and reveals the principles behind its phenomenal customer service. If you want to be the Nordstrom of your industry, this is your guidebook. It will help any company put in place Nordstrom-style systems, motivational tools, and a...
Photoshop CS5: The Missing Manual
Photoshop CS5: The Missing Manual

You'd be hard-pressed to find a published image that hasn't spent some quality time in Adobe Photoshop. With new features such as Content-Aware Fill and Puppet Warp, Photoshop CS5 is more amazing -- and perhaps more bewildering -- than ever. That's where this full-color Missing Manual comes in. It covers Photoshop from a...

Power Electronics Handbook, Second Edition: Devices, Circuits and Applications (Engineering)
Power Electronics Handbook, Second Edition: Devices, Circuits and Applications (Engineering)

Power electronics, which is a rapidly growing area in terms of research and applications, uses modern electronics technology to convert electric power from one form to another, such as ac-dc, dc-dc, dc-ac, and ac-ac with a variable output magnitude and frequency. Power electronics has many applications in our every day life such as...

©2019 LearnIT (support@pdfchm.net) - Privacy Policy