| ||||||||||||||||||
![]() Trade In this Item for up to £2.20
Trade in sed & awk (Nutshell Handbooks) for an Amazon.co.uk gift card of up to £2.20, which you can then spend on millions of items across the site. Trade-in values may vary (terms apply). Find more products eligible for trade-in.
|
Product details
|
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).
Tags Customers Associate with This Product(What's this?)Click on a tag to find related items, discussions, and people.
|
|
Share your thoughts with other customers:
|
||||||||||||||||||||||
|
Most Helpful Customer Reviews
6 of 6 people found the following review helpful:
4.0 out of 5 stars
Indispensible tools for text manipulation,
This review is from: sed & awk (Nutshell Handbooks) (Paperback)
Unix has earned itself quite a reputation for its potent tools, used for batch editing of text files (like program output). Sed and Awk are two of these tools. Sed is a direct descendent of Ed, the original Unix line editor, which employs <I>regular expressions</I>, a powerful method for description of patterns in text, for operations like substitute, append or delete. Awk is a complete scripting language with programming structures like conditionals, loops, functions etc., developed in 1970's by Alfred Aho, Brian Kernighan and Peter Weinberger (hence A-W-K). The trio has also written a book on Awk.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 <I>Unix Power Tools</I> 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.
5 of 5 people found the following review helpful:
5.0 out of 5 stars
A gentle guide to two daunting tools.,
By A Customer
This review is from: sed & awk (Nutshell Handbooks) (Paperback)
Sed & Awk are two of the most hostile looking Unix utilities. Although I was an experienced shell scripter I was terrified of Sed & Awk until I got this book. It's an excellently written guide, starting very simply without being too basic and working up to some complex concepts.I use sed/awk daily now, they're extremely useful tools. If this make VERY heavy use of these tools I'd also recommend reading another O'Reilly book - "Mastering Regular Expressions"
9 of 10 people found the following review helpful:
5.0 out of 5 stars
really excellent cant praise it enough!,
By A Customer
This review is from: sed & awk (Nutshell Handbooks) (Paperback)
I purchased this book over a year ago now when I was doing a shell scripting course at university and couldnt understand a thing the lecturer was saying! This book took me out of the hole I was in and passed me the course, no doubt about it.As if that werent enough, I have recently undertaken the LPIC1 certification and again this book was worth its weight in gold. I was studying basic use of sed in the certification guide and deicded to brush up on regular expressions and the use of sed and again, out came this book and again, within a few hours it was all made clear. There is a large chapter on regular expressions thrown in so there's no need to buy a separate book on those unless your going in heavy, the material taught in this book is advanced enough for all but the most masochistic of people! Thoroughly good read very impressive book. Well worth the money. Its one of the most satisfying feelings when you finally crack a regexp and get the sed script to spit out what you need!
Share your thoughts with other customers: Create your own review
Would you like to see more reviews about this item?
|
Most Recent Customer Reviews |
|