Shop now Shop now Shop now Shop Black Friday Deals Week in Fashion Cloud Drive Photos Shop now Amazon Fire TV Shop now DIYED Shop now Shop Fire Shop Kindle Paperwhite Listen in Prime Shop Now Shop now
Buy Used
+ £2.80 UK delivery
Used: Very Good | Details
Condition: Used: Very Good
Comment: Shipped within 24 hours from our UK warehouse. Clean, undamaged book with no damage to pages and minimal wear to the cover. Spine still tight, in very good condition. Remember if you are not happy, you are covered by our 100% money back guarantee.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

sed & awk Paperback – 11 Nov 1990

See all formats and editions Hide other formats and editions
Amazon Price
New from Used from
"Please retry"
£40.19 £0.01

There is a newer edition of this item:

Sed & Awk
In stock.

Black Friday Deals Week in Books
Visit our Deals in Books store to discover Amazon's greatest ever deals. Shop now
Available from these sellers.

Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.

  • Apple
  • Android
  • Windows Phone

To get the free app, enter your e-mail address or mobile phone number.

Product details

More About the Authors

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

There are no customer reviews yet on
5 star
4 star
3 star
2 star
1 star

Most Helpful Customer Reviews on (beta) 65 reviews
65 of 68 people found the following review helpful
2 cute little guys who will work hard for you 1 July 2004
By Alexander E. Paulsen - Published on
Format: Paperback
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.
34 of 35 people found the following review helpful
You'll not regret this one! 25 Sept. 2001
By Ales Kavsek - Published on
Format: Paperback
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!
28 of 29 people found the following review helpful
Useful to learn it, not for experienced users, and not a reference book either. 1 July 2007
By GPK - Published on
Format: Paperback
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. I was looking for a single book that would give a good overview of all functions on a more-than-beginners-level and at the same time could serve as a reference. Perhaps not as 'the ultimate reference' but good enough for professionals who want to use sed and awk in a pragmatic way. With this I mean: a book you can turn to if you just want to write a little program/script that get's the job done.

This is not that book. I found this book useful in explaining the basics of sed and awk. There is also a quick reference section on both sed and awk. However, my overall observation is that the level of this book is not very advanced and therefore did not do the job for me. I would recommend this book to beginners and not to people who have already used sed and awk themselves. The level is basic, the reference sections are too brief and incomplete to be really 'reference sections'. I am still looking for a real reference book.

Tip: if you want to get started with sed and awk, search the internet for "sed one-liners" and "awk one-liners": these are one-line example 'programs' or commands that most likely will do what you are looking for. And if not, they are helpful to get you going and make some trivial changes so that the program does do what you need. No need for buying a book.
32 of 34 people found the following review helpful
Powerful tools for text manipulation 15 April 2000
By Primoz Peterlin - Published on
Format: 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 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.
7 of 7 people found the following review helpful
Good tutorial, problematic reference 25 May 1999
By Paul Emmons ( - Published on
Format: Paperback
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, because I am learning easily from the book. Yet this organization detracts seriously from its reference value, especially when one uses the index.
You can look up a feature which you need to review, turn to one of the listed pages, begin reading, and then realize that you have no idea which program is being described. While the approach is an interesting experiment, I question whether its benefits are worth such drawbacks. If the authors decide to continue the approach in later edition, a simple device such as different type faces of page references in the index (e.g. Roman for Awk, the more elaborate package, and Italic for Sed) would help relieve this problem.
Were these reviews helpful? Let us know