See buying choices for this item to see if it's one of the millions that are eligible for Amazon Prime.

33 used & new from $0.32

Have one to sell? Sell yours here
 
 
sed & awk (Nutshell Handbooks)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

sed & awk (Nutshell Handbooks) (Paperback)

by Dale Dougherty (Author)
4.3 out of 5 stars See all reviews (40 customer reviews)


Available from these sellers.


6 new from $18.99 27 used from $0.32
Also Available in: List Price: Our Price: Other Offers:
Paperback (Bargain Price) 14 used & new from $19.20
Paperback (2) $34.95 $23.07 78 used & new from $4.97

Customers Who Bought This Item Also Bought

Mastering Regular Expressions

Mastering Regular Expressions

by Jeffrey Friedl
4.5 out of 5 stars (132)  $29.69
Classic Shell Scripting

Classic Shell Scripting

by Arnold Robbins
4.6 out of 5 stars (10)  $23.07
Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly))

Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly))

by Cameron Newham
4.1 out of 5 stars (33)  $23.07
bash Cookbook: Solutions and Examples for bash Users (Cookbooks (O'Reilly))

bash Cookbook: Solutions and Examples for bash Users (Cookbooks (O'Reilly))

by Carl Albing
4.5 out of 5 stars (11)  $31.49
sed and awk Pocket Reference, 2nd Edition

sed and awk Pocket Reference, 2nd Edition

by Arnold Robbins
4.7 out of 5 stars (6)  $9.95
Explore similar items

Editorial Reviews

Product Description
For people who create and modify text files, sed and awk are power tools for editing. Most of the things that you can do with these programs can be done interactively with a text editor. However, using sed and awk can save many hours of repetitive work in achieving the same result. This book contains a comprehensive treatment of sed and awk syntax. It emphasizes the kinds of practical problems that sed and awk can help users to solve, with many useful example scripts and programs.

From the Publisher
sed & awk, one of the most popular books in O'Reilly & Associates' Nutshell series, 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 new edition covers features of sed and awk that are now 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). --This text refers to the Paperback edition.

See all Editorial Reviews

Product Details

  • Paperback: 414 pages
  • Publisher: O'Reilly; 1 edition (October 1990)
  • Language: English
  • ISBN-10: 0937175595
  • ISBN-13: 978-0937175590
  • Product Dimensions: 8.9 x 5.9 x 1 inches
  • Shipping Weight: 1.2 pounds
  • Average Customer Review: 4.3 out of 5 stars See all reviews (40 customer reviews)
  • Amazon.com Sales Rank: #466,858 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #54 in  Books > Computers & Internet > Software > Business > Utilities

Look Inside This Book

What Do Customers Ultimately Buy After Viewing This Item?


Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
Check a corresponding box or enter your own tags in the field below.
(37)
(61)
(54)
(24)
(21)
(23)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

40 Reviews
5 star:
 (20)
4 star:
 (15)
3 star:
 (3)
2 star:
 (1)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.3 out of 5 stars (40 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
40 of 41 people found the following review helpful:
5.0 out of 5 stars 2 cute little guys who will work hard for you, July 1, 2004
By Alexander E. Paulsen "AlexP" (Jacksonville, Fl United States) - See all my reviews
(REAL NAME)   
I've had this book for 3-4 years now and find it to be my handiest reference. I even use ot more than my vi book.

The raw power of sed and awk will humble even the proudest VB programmer and this book will help you get the most out of both the "Aho, Weinberg and Kernigan" and the "stream editor".

The first chapter section is entitled "May You Solve Interesting Problems" a paraphrase of the old Chinese curse, but with sed and awk no problem seems insurmountable and will make all problems appear interesting.

This book is an outstanding reference and will get you up and running with both of these handy little programs in no time.

Just to give you an example - the first time I ever used these programs (sed and awk) I developed a cron script to query a database every day at midnight, sort the results, grabbed lines with tagged values within certain limits, added a few totals, did some averaging, "starred" the lines that departed from certain parameters, then formatted the results into a report with a header showing the dates, times and query results, statistics then packed them into a report file and e-mailed them to a dozen recipients and added a few recipients if the data was outside certain values.

I did this remarkable feat by copying a few examples from the book, changing a thing or two and in the end had a little shell script that was a few K-bytes at the most.

This VB guy from corporate worked on a VB version of the same function and ended up with six revisions, several megs in the executable and never was able to get it formatted right. Not to say that it couldn't be done but..... I wrote mine before lunch one day. He worked on his for weeks and weeks.

Such is the power contained within should you want to tap it Grasshopper.

Great book. Amaze your friends and colleagues. Have the office women ( or men) throw flowers at your feet as you enter every day - well maybe not, but this will make you more productive.

You real nerds will hardly get finished with a single box of Pop Tarts before you are writing really cool scripts when using this book.

Like all O'Reilly books this one is terse, practical and highly usable - just like UNIX.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
31 of 32 people found the following review helpful:
4.0 out of 5 stars You'll not regret this one!, September 25, 2001
By Ales Kavsek (Ljubljana, Slovenia) - See all my reviews
My primarily profession is database administration on Windows NT/2000 platform so I'm pretty new to Unix tools. Several months ago I needed some inexpensive, yet powerful tools to manipulate some large text files for our data warehouse project -- basically I was looking for a way to avoid expensive commercial ETL tools. PERL was my first choice, but it seemed to me that learning curve is too steep for what I needed, so I ended with GNU sed and awk.
I was happy with the GNU version of Guide for Awk "Effective AWK Programming" written by one of the author of this book, Mr. Arnold D. Robbins -- but I needed some good reference for sed as well and this book was logical choice for me. Not only that it helped me to learn SED, now I'm using the book mostly as reference and user guide for awk. It's well written and will certainly satisfy both the advanced and the novice users.
The only objections that I have are examples at the end of the book. Not many readers will find them interesting and useful, especially chapter 12 Full-Featured Applications.
Overall good choice if you want to learn either of the two tools!
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
28 of 30 people found the following review helpful:
4.0 out of 5 stars Powerful tools for text manipulation, April 15, 2000
By Primoz Peterlin (Ljubljana, Slovenia) - See all my reviews
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 regular expressions, 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 "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.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

4.0 out of 5 stars basic tools to do a basic job
Computers do one basic job, they process data. Often, you do not have control over the output format of the data, but the stuff you want in in there somewhere. Read more
Published 7 months ago by Herbert C. Meyer

5.0 out of 5 stars a great little book
I found understanding/writing sed/awk commands/scripts a daunting task until I bought this book. This book empowers you. I rate it at par with "the vi editor" from same publisher
Published 10 months ago by Rajendra

5.0 out of 5 stars Can Replace All of Your SED & AWK Bookmarks (2ndEd)
This book is like a big tutorial series, packed with tons of applicable examples. It is not a reference, that's what the man pages are for, although the index if very good. Read more
Published 11 months ago by Clint Pachl

5.0 out of 5 stars Old, but Ok for the porpurse
If you want understand all the sed advanced commands, this book is for you !

I recommend using perl instead sed or awk
Published 15 months ago by i5513

4.0 out of 5 stars Come for the sed, stay for the awk!
This book is a timeless classic, the information on sed is invaluable to anyone who regularly works with text files or streams (after all sed is short for stream editor). Read more
Published 17 months ago by GoClick

5.0 out of 5 stars Are you serious?
In a nutshell, if you don't have this book, you are probably not a serious programmer or system administrator. Read more
Published 23 months ago by T. Phillips

3.0 out of 5 stars The best (only?) book to learn these tools from A to Z
I had to do some text processing and I wanted to learn sed & awk so I picked this book that is, to my knowledge, the only book completely dedicated to these tools. Read more
Published 23 months ago by Olivier Langlois

2.0 out of 5 stars I must be the only one who hates this book!
I have looked in this book again and again in an attempt to find out "how do I do xxx with awk or sed?" I just need a quick and dirty script to do something. Read more
Published on July 5, 2007 by Richard Cook

3.0 out of 5 stars Useful to learn it, not for experienced users, and not a reference book either.
I have a science background and am a regular user of unix systems, although I am not a professional IT'er. Therefore I was already familiar with sed and awk. Read more
Published on July 1, 2007 by GPK

5.0 out of 5 stars Definitive
I've been into Unix since the 80s... Minix on an Atari ST for the nostalgic... including being system admin on various Unix platforms at work (Solaris, HP-UX, DRS-NX, SCO Unix,... Read more
Published on March 30, 2007 by G. M. Davis

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   
Related forums


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Let Toro Clear the Snow

Let Toro Clear the Snow
Rely on Toro for top-quality snow throwers and power shovels to make snow removal a breeze.

Shop all Toro

 

Best Books of 2008

Best of 2008
Find our top 100 editors' picks as well as customers' favorites in dozens of categories in our Best Books of 2008 Store.
 

Buy Three Books, Get a Fourth Free

4-for-3 Books
Order any four eligible books under $10 and get the lowest-price book free in our 4-for-3 Books Store. See more details.
 

Best Books

Best of the Month
See our editors' picks and more of the best new books on our Best of the Month page.
 

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.



Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Paranoia
Paranoia by Joseph Finder
Free
Free by Chris Anderson
My Soul to Lose
My Soul to Lose by Rachel Vincent
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates