Download PDF The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
Be the very first to obtain this publication now and also obtain all reasons why you have to review this The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger The e-book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger is not just for your obligations or necessity in your life. E-books will certainly constantly be a buddy in every time you read. Now, let the others know concerning this web page. You can take the benefits and also share it also for your close friends as well as individuals around you. By in this manner, you could really get the definition of this e-book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger profitably. Exactly what do you consider our suggestion below?
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
Download PDF The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
Just what do you do to begin reading The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger Searching the book that you like to read first or find an interesting publication The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger that will make you wish to read? Everyone has difference with their factor of reviewing an e-book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger Actuary, checking out routine has to be from earlier. Several individuals could be love to review, but not a publication. It's not mistake. Someone will certainly be tired to open the thick publication with tiny words to review. In more, this is the actual condition. So do occur most likely with this The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
This book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger is expected to be one of the best vendor book that will certainly make you really feel pleased to acquire as well as review it for completed. As recognized could usual, every publication will have specific things that will make an individual interested a lot. Even it comes from the author, type, material, and even the author. However, many individuals likewise take guide The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger based on the style as well as title that make them impressed in. and below, this The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger is very suggested for you considering that it has fascinating title and style to read.
Are you truly a follower of this The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger If that's so, why don't you take this book currently? Be the very first individual which like as well as lead this book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger, so you can obtain the factor and also messages from this publication. Don't bother to be perplexed where to obtain it. As the various other, we share the link to go to and also download and install the soft documents ebook The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger So, you might not bring the published book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger almost everywhere.
The visibility of the online publication or soft documents of the The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger will certainly reduce individuals to obtain the book. It will additionally save even more time to just search the title or writer or publisher to get till your book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger is disclosed. After that, you could go to the link download to go to that is given by this web site. So, this will be a very good time to start enjoying this publication The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger to read. Consistently great time with publication The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger, consistently great time with cash to spend!
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 funcitons. This new version is available for both UNIX and MS-DOS.
- Sales Rank: #179908 in Books
- Published on: 1988-01-11
- Original language: English
- Number of items: 1
- Dimensions: 9.00" h x .70" w x 6.10" l, .65 pounds
- Binding: Paperback
- 210 pages
From the Back Cover
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
020107981XB04062001
About the Author
Brian W. Kernighan works in the Computing Science Research Center at Bell Laboratories, Lucent Technologies. He is Consulting Editor for Addison-Wesley's Professional Computing Series and the author, with Dennis Ritchie, of The C Programming Language.
020107981XAB04062001
Excerpt. © Reprinted by permission. All rights reserved.
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 special-purpose 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 arbutrary 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 programable tool that can replace 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 unitil it doesth edesired 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.
Organization of the BookThe first goal of this book is to teach you what awk is and how to use it effectively. Chapter 1 is a tutorial on the bare minimum necessary to get started; after reading even a few pages you should have enough information to begin writing useful programs. The examples in this chapter are very short and simple, typical othe interactive use of awk.
Chapter 2 covers the entire language in a systematic order. Although there are plenty of examples in this chapter, like most manuals it's long and a bit dry, so you will probably want to skim it on a first reading.
The rest of the book contains a wide variety of examples, chosen to show the breadth of applicability of awk and how to make good use of its facilities. Some of the programs are in regular use in our environment; others show ideas but are not intended for production use; a few are included just because they are fun.
The emphasis in Chapter 3 is on retrieval, transformation, reduction and validation of data--the tasks that awk was originally designed for. There is also a discussion of how to handle data like address lists that naturally comes in multiline chunks.
Awk is a good language for managing small, personal databases. Chapter 4 discusses the generation of reports from databases, and builds a simple relational database system and query language for data stored in multiple files.
Awk handles text with much the same convenience that most languages handle numbers, so it often finds application in text processing. Chapter 5 describes programs for generating text, and some that help with document preparation. One of the examples is an indexing program based on the one we used for this book.
Chapter 6 is about "little languages," that is, specialized languages that focus on a narrow domain. Awk is convenient for writing small translators because it's basic operations support many of the lexical and table- management tasks encountered in translation. The chapter includes an assembler, a graphics language, and several calculators.
Awk is a good language for expressing certain kinds of algorithms. Because there are no declarations and because storage management is easy, an awk program has many of the advantages of pseudo-code but awk programs can be run, which is not true of pseudo-code. The focus in Chapter 7 is on experimentation with algorithms, including testing and performance evaluation. It shows several sorting algorithms, and culminates in a version of the Unix make program.
Chapter 8 describes some of the historical reasons why awk is as it is and offers some suggestions on what to do when it is too slow or too confining.
Appendix A is a summary of the language; Appendix B contains answers to selected exercises.
You shoul begin by reading Chapter 1, and trying some small examples of your own. Go through Chapter 2 quickly, concentrating on the summaries and tables; don't get bogged down in the details. Then read as far into each of the subsequent chapters as your interest takes you. These chapters are nearly independent of each other, so the order doesn't matter much.
The ExamplesThere are several themes in the examples. The primary one, of course, is to show how to use awk well. We have tried to include a wide variety of useful constructions, and we have stressed particular aspects like associative arrays and regular expressions that typify awk programming.
A second theme is to show awk's versatility. Awk programs have been used from databades to circuit design, from numerical analysis to graphics, from compilers to system adminstration, from a first language for nonprogrammers to the implementation language for software engineering courses. We hope that the diversity of applications illustrated in the book will suggest new possibilities to you as well.
A third theme is to show how common computing operations are done. The book contains a relational database system, an assembler and interpreter for a toy computer, a graph-drawing language, a recursive-descent parser for an awk subset, a file-update program based on make and many other examples. In each case, a short awk program conveys the essence of how something works in a form that you can understand and play with.
We have also tried to illustrate a spectrum of ways to attack programming problems. Rapid prototyping is an approach that awk supports well. A less obvious strategy is divide and conquer; breaking a big job into small components, each concentrating on one aspect of the problem. Another is writing programs that create other programs. Little languages define a good user interface and often suggest a sound implementation. Although these ideas are presented here in the context of awk, they are much more generally applicable and ought to part of every programmer's repertoire.
The examples have all been tested directly from the text, which is in machine-readable form. We have tried to make the programs error-free, but we have not added features nor made them proof against all possible invalid inputs, preferring to concentrate on conveying the essentials.
Evolution of the AWK languageAwk was originally designed and implemented by the authors in 1977, in part as an experiment to see how the Unix gools grep and sed could be generalized to deal with numbers as well as text. It was based on our interests in regular expressions and programmable editors. Although it was meant for writing very short programs, its combination of facilities soon attracted users who wrote significantly larger programs. These larger programs needed features that had not been part of the original implementation, so awk was enhanced in a new version made available in 1985.
Other enhancements include dynamic regular expressions, with text substitution and pattern-matching functions; additional built-in functions and variables; some new operators and statements; iput from multiple files; and access to command-line arguments. Error messages have also been improved. The examples in Chapter 1 use only facilities of the original version; many examples in later chapters take advantage of new features.
The version of awk is partof Unix System V Release 3.1. Source code for this version is also available through AT&T's Unix System Toolchest software distribution system; call 1-201-522-6900 and log in as guest. In Europe, contact AT&T Unix Europe in London (44-1-567-7711); in the Far EASt, contact AT&T Unix Pacific in Tokyo (81-3-431-3670).
Since awk was developed under Unix, some of its features reflect capabilities usually found only there; these features are used in some of our examples. Furthermore, we have assumed the existence of some Unix utilities, particularly sort, for which exact equivalents may not exist elsewhere. Aside from these limitations, however, awk should be useful in any environment; in particular, it runs on MS-DOS. Further information is available from Addison-Wesley.
Awk is certainly not perfect; it has its share of irregularities, omissions, and just plain bad ideas, and it's sometimes painfully slow. But it's also a rich and versatile language, useful in a remarkable number of cases. We hope you'll find it as valuable as we do.
AcknowledgmentsWe are deeply indebted to friends who made comments and suggestions on drafts of this book. We are particularly grateful to Jon Bentley, whose enthusiasm has been an inspiration for years. Jon contributed many ideas and programs derived from his experience using and teaching awk; he also read several drafts with great care. Doug McIlroy also deserves special recognition; his peerless talent as a reader greatly improved the structure and content of the whole book. Others who made helpful comments on the manuscript include Susan Aho, Jaap Akkerhuis, Lorinda Cherry, Chris Fraser, Eric Grosse, Ricardo Gusella, Bob Herbst, Mark Kernighan, John Linderman, Bob Martin, Howard Moscovitz, Gerard Schmitt, Don Swartwout, Howard Trickey, Peter van Eijk, Chris Van Wyk, and Mihalis Yannakakis. We thank them all.
Alfred V. Aho
Brian W. Kernighan
Peter J. Weinberger
020107981XP04062001
Most helpful customer reviews
0 of 0 people found the following review helpful.
Five Stars
By Campbell Hutcheson
This book is a treasure.
19 of 22 people found the following review helpful.
The Publishers Should Be Ashamed of Themselves
By hoosac
This is a wonderful book -- but the price is ridiculous. I purchased a paperback copy of "The Awk Programming Language" about 15 years ago, and its price was in the $20 range. Times change, and prices go up, but $73 for a 200-page book, even if it is a hardcover, verges on outright theft.
Which is a shame, because this is a great book, written by the men who developed the language. In addition to a lengthy tutorial, it contains many examples of sophisticated programs that can be constructed from the simple tools provided by Awk. Anyone who supports computers for a living, whether in the Unix or Windows environment, can find valuable ideas here.
But the price: c'mon guys, you've got to be kidding. This book has been in print for 20 years now. You've long since made back the initial costs of publishing it. The authors are famous in computer science circles, and have written many other books. I'm sure they don't need the money. So I have to conclude that this is just a cash cow for the publishers.
If you're looking to learn about Awk, and you're on a budget, I would suggest "Effective Awk Programming" by Arnold Robbins. It's available in PDF form as a free download. If you'd like to support the author, buy a printed copy of the book, as I did. Published by O'Reilly, it's available in paperback at Amazon for about $26.
And if you can find a reasonably-priced copy of "The Awk Programming Language", by all means, grab it. It's a classic. Thanks to the publishers, however, it's a classic that's out of most people's reach.
4 of 4 people found the following review helpful.
Put this in your toolbox
By Donald Dwoske
I've become a big fan of Awk. Some people may tell you that Awk is outdated and no longer useful; not with other languages such as Perl and Ruby available. Well, Awk does one thing and does it well. It does it "fast enough" most of the time, and does it with a very small language.
Perl and Ruby are fine, but if you lean towards "small is beautiful", you must learn Awk. For times when you need it, it's a Godsend. I've used it recently to automatically generate SQL insert statements from some flat files and to do automatic code generation for larger languages.
Some of the best tools have survived the test of time.
In this book, I feel like I learned all the things I need to know about Awk - all the way from beginner to advanced. It's a classic. Not a lot of books get five stars for me. This book fulfills it's goals perfectly, so deserves a perfect rating.
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger PDF
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger EPub
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger Doc
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger iBooks
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger rtf
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger Mobipocket
The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger Kindle
Tidak ada komentar:
Posting Komentar