- Taschenbuch: 432 Seiten
- Verlag: O'Reilly and Associates; Auflage: 2 (1. März 1997)
- Sprache: Englisch
- ISBN-10: 1565922255
- ISBN-13: 978-1565922259
- Größe und/oder Gewicht: 17,8 x 2,5 x 23,3 cm
- Durchschnittliche Kundenbewertung: 20 Kundenrezensionen
- Amazon Bestseller-Rang: Nr. 78.069 in Fremdsprachige Bücher (Siehe Top 100 in Fremdsprachige Bücher)
- Komplettes Inhaltsverzeichnis ansehen
sed & awk (Nutshell Handbooks) (Englisch) Taschenbuch – 1. März 1997
|Neu ab||Gebraucht ab|
Wird oft zusammen gekauft
Kunden, die diesen Artikel gekauft haben, kauften auch
Es wird kein Kindle Gerät benötigt. Laden Sie eine der kostenlosen Kindle Apps herunter und beginnen Sie, Kindle-Bücher auf Ihrem Smartphone, Tablet und Computer zu lesen.
Geben Sie Ihre Mobiltelefonnummer ein, um die kostenfreie App zu beziehen.
Wenn Sie dieses Produkt verkaufen, möchten Sie über Seller Support Updates vorschlagen?
sed & awk describes two text processing programs that are mainstays of the UNIX programmer's toolbox. sed is a "stream editor" for editing streams of text that might be too large to edit as a single file, or that might be generated on the fly as part of a larger data processing step. The most common operation done with sed is substitution, replacing one block of text with another. awk is a complete programming language. Unlike many conventional languages, awk is "data driven" -- you specify what kind of data you are interested in and the operations to be performed when that data is found. awk does many things for you, including automatically opening and closing data files, reading records, breaking the records up into fields, and counting the records. While awk provides the features of most conventional programming languages, it also includes some unconventional features, such as extended regular expression matching and associative arrays. sed & awk describes both programs in detail and includes a chapter of example sed and awk scripts. This edition covers features of sed and awk that are mandated by the POSIX standard.This most notably affects awk, where POSIX standardized a new variable, CONVFMT, and new functions, toupper() and tolower(). The CONVFMT variable specifies the conversion format to use when converting numbers to strings (awk used to use OFMT for this purpose). The toupper() and tolower() functions each take a (presumably mixed case) string argument and return a new version of the string with all letters translated to the corresponding case. In addition, this edition covers GNU sed, newly available since the first edition. It also updates the first edition coverage of Bell Labs nawk and GNU awk (gawk), covers mawk, an additional freely available implementation of awk, and briefly discusses three commercial versions of awk, MKS awk, Thompson Automation awk (tawk), and Videosoft (VSAwk).
Über den Autor und weitere Mitwirkende
Dale Dougherty is president and CEO of Songline Studios, a leading web publishing company. He is editor and publisher of Web Review (webreview.com), an innovative online magazine for web site developers. Prior to Songline, Dougherty developed the Global Network Navigator (GNN) and was the founding editor for O'Reilly's Nutshell Handbooks (R). Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has been working with UNIX systems since 1980, when he was intoduced to a PDP-11 running a version of Sixth Edition UNIX. He has been a heavy awk user since 1987, when he became involved with gawk, the GNU project's version of awk. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for awk. He is currently the maintainer of gawk and its documentation. The documentation is available from the Free Software Foundation (http://www.gnu.org) and has also been published by SSC (http://www.ssc.com) as "Effective AWK Programming." He is also co-author of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel.
Welche anderen Artikel kaufen Kunden, nachdem sie diesen Artikel angesehen haben?
Dieses Buch beschreibt hervorragend sed & awk, aber eben nicht mehr. Viele Dinge in dem Buch machen natürlich nur Sinn oder ergeben einen Nutzen wenn man fundierte Shell-Scripting Fähigkeiten vorweisen kann.
Mit awk verhält es sich im Buch genauso. Alles wird erklärt, von den Anfängen bis zu den komplexen Skripten.
Für jemanden, der nicht nur online lernt ein sehr gutes Buch. Natürlich gibt es zu diesen beiden betagten Unix-Werkzeugen eine Menge an Tutorials und Beispielen im Internet, aber das schmälert nicht den Wert dieses Buches.
But there is so much more these two tools can do. And this book shows you how. In each of the two major parts things are laid out in a logical manner building up knowledge thoroughly from the ground up, all supported by lots of well explained examples.
Both, sed and awk, rely heavily on regular expressions and the authors don't let you down in this area either. Chapter 3 is dedicated to equip you with a well enough working knowledge of regular expressions. It surely is not as thorough as Jeffry Friedl's "Mastering Regular Expressions", but the chapter packs a lot of information into the 29 pages. Especially with awk, there are quite a number of different versions out there and they are not quite identical in feature scope. Differences among some major implementations are discussed as well. Finally, in the appendices, you can find a quick reference for both sed and awk.
As thorough (and even beginner friendly) as the book is, it does have one drawback: it is old. Much of the sample code deals with manipulating troff files or uucp logs. Both things many unix/linux users of today have no idea about. The reliance on such old samples is not a problem per se, they still do the job of demonstrating concepts and usage of sed and awk quite nicely. But these samples are much less applicable to sed/awk users today than they were twenty years ago when the first edition of this book was published. What I also think would be badly needed in an updated third revision is a discussion of how to use these tools with non-English charactersets and Unicode.Lesen Sie weiter... ›
Dale Dougherty (in the 2nd edition with Arnold Robbins, maintainer of GNU Awk and author of several more books on Awk programming language) have made a good job in making a thoroughly readable tutorial on Sed and Awk. However, it remains a mystery to me how they succeeded to fill no less than 407 pages with it. Mind you, Sed and Awk are not really some big monsters. There exist something like two dozens of operators in Sed (most of them you will probably never use), and the syntax of Awk mimics those of C programming language, so it is likely that you know it already. Once you grok the idea of regular expressions, you should become a proficient user of Awk in about 30 minutes.
In conclusion, go buy the book if your need to manipulate text files on Unix and you think you need a lengthy tutorial with a gentle learning curve. Otherwise, short references on Awk and Sed, like the ones in "Unix Power Tools" and a bunch of examples showing some tricks you might not think of, will probably be more useful. In addition, it is good to know that during the nineties, much of the focus has drifted from Awk to Perl, so you might consider a book on Perl as well.
Die neuesten Kundenrezensionen
Dieses Buch ist unentbehrlich für den UNIX Entwickler und Administrator. Viele Anregungen mit AWK und SED vereinfachen die tägliche Arbeit mit UNIX und schaffen Freiraum... Lesen Sie weiter...Veröffentlicht am 12. Januar 2011 von Klaus Loewenhagen
I was very interested in learning sed and awk, and so picked up this book. Like most O'Reilly titles, it is an excellent piece of work. Lesen Sie weiter...Veröffentlicht am 12. Mai 2000 von Erik L. Arneson
Even if you've done a lot of Unix scripting (mostly in Perl as I did), this book will change the way you get your work done. Lesen Sie weiter...Am 1. Februar 2000 veröffentlicht
This book from the GREAT O'reilly Collection is a must for anyone who wants to master 'sed' and 'awk', a POWERFUL set of Unix tools, which are too often ignored or under-utilized. Lesen Sie weiter...Veröffentlicht am 13. Januar 2000 von Philippe Bourdon
I suppose if the proof of the teaching is in the learning, the authors' idea (in this edition) of interlacing their discussions of Sed and Awk throughout the volume is vindicated,... Lesen Sie weiter...Veröffentlicht am 25. Mai 1999 von Paul Emmons (firstname.lastname@example.org)
This is a good book. Although I find some of the information that I need. There seems to be a fair amount that's concealed by the books approach to each topic.Am 24. April 1999 veröffentlicht