Senin, 02 Januari 2012

[I947.Ebook] Free Ebook The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger

Free Ebook The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger

This is it guide The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger to be best seller recently. We offer you the most effective deal by obtaining the stunning book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger in this site. This The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger will not only be the sort of book that is tough to find. In this site, all types of books are supplied. You could search title by title, writer by writer, as well as publisher by author to learn the very best book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger that you can check out now.

The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger

The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger



The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger

Free Ebook The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger

The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger. Offer us 5 mins as well as we will certainly show you the most effective book to review today. This is it, the The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger that will be your ideal choice for better reading book. Your five times will not spend squandered by reading this website. You could take the book as a source making far better idea. Referring the books The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger that can be situated with your demands is sometime difficult. However here, this is so easy. You could find the best point of book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger that you can review.

If you desire actually get the book The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger to refer now, you need to follow this page always. Why? Remember that you need the The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger resource that will offer you best expectation, don't you? By visiting this internet site, you have actually begun to make new deal to consistently be up-to-date. It is the first thing you could start to get all benefits from being in a site with this The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger and also various other collections.

From currently, discovering the finished site that markets the finished books will certainly be numerous, but we are the trusted site to visit. The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger with easy link, very easy download, as well as finished book collections become our better solutions to obtain. You could discover as well as use the benefits of choosing this The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger as everything you do. Life is always establishing and also you need some new publication The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger to be referral consistently.

If you still require a lot more books The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger as recommendations, visiting look the title and also theme in this site is readily available. You will find even more whole lots books The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger in various disciplines. You can additionally as quickly as possible to review guide that is currently downloaded. Open it and also conserve The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger in your disk or gizmo. It will certainly alleviate you any place you require guide soft file to check out. This The AWK Programming Language, By Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger soft file to review can be recommendation for everyone to improve the skill and also ability.

The AWK Programming Language, by Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger

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
The examples illustrates the book's three themes: showing how to use AWK well, demonstrating AWK's versatility, and explaining how common computing operations are done. In addition, the book contains two appendixes: summary of the language, and answers to selected exercises.



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 Book

The 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 Examples

There 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 language

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

Acknowledgments

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

See all 36 customer reviews...

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

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 PDF

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 PDF

Tidak ada komentar:

Posting Komentar