Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$26.40$26.40
FREE delivery: Tuesday, March 26 on orders over $35.00 shipped by Amazon.
Ships from: Amazon.com Sold by: Amazon.com
Buy used: $11.41
Other Sellers on Amazon
FREE Shipping
86% positive over lifetime
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Classic Shell Scripting First Edition
Purchase options and add-ons
Shell scripting skills never go out of style. It's the shell that unlocks the real potential of Unix. Shell scripting is essential for Unix users and system administrators-a way to quickly harness and customize the full power of any Unix system. With shell scripts, you can combine the fundamental Unix text and file processing commands to crunch data and automate repetitive tasks. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards. Classic Shell Scripting is written to help you reliably navigate these tricky waters.Writing shell scripts requires more than just a knowledge of the shell language, it also requires familiarity with the individual Unix programs: why each one is there, how to use them by themselves, and in combination with the other programs. The authors are intimately familiar with the tips and tricks that can be used to create excellent scripts, as well as the traps that can make your best effort a bad shell script. With Classic Shell Scripting you'll avoid hours of wasted effort. You'll learn not only write useful shell scripts, but how to do it properly and portably.The ability to program and customize the shell quickly, reliably, and portably to get the best out of any individual system is an important skill for anyone operating and maintaining Unix or Linux systems. Classic Shell Scripting gives you everything you need to master these essential skills.
- ISBN-100596005954
- ISBN-13978-0596005955
- EditionFirst Edition
- PublisherO'Reilly Media
- Publication dateFebruary 1, 2005
- LanguageEnglish
- Dimensions7 x 1.1 x 9.19 inches
- Print length558 pages
Frequently bought together

Similar items that may ship from close to you
Editorial Reviews
About the Author
Nelson Beebe is a long time Unix user and system administrator, and has helped for years on Usenet newsgroups.
Product details
- Publisher : O'Reilly Media; First Edition (February 1, 2005)
- Language : English
- Paperback : 558 pages
- ISBN-10 : 0596005954
- ISBN-13 : 978-0596005955
- Item Weight : 1.94 pounds
- Dimensions : 7 x 1.1 x 9.19 inches
- Best Sellers Rank: #131,921 in Books (See Top 100 in Books)
- #4 in Unix Shell
- #90 in Microsoft Programming (Books)
- #321 in Computer Software (Books)
- Customer Reviews:
About the authors

Discover more of the author’s books, see similar authors, read author blogs and more

Arnold Robbins is a professional programmer, instructor, and author. A long-time GNU Project volunteer, he currently maintains gawk. He has worked with C, C++, Unix, and GNU/Linux since 1980.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The Good: Robbins and Beebe have created a pedagogically sound book which contains tables, fascinating digressions, sidebars (with major options on tools, along with caveats), an annotated bibliography, as well as a glossary. The book can be read straight through, since each chapter builds on the preceding ones, but the aforementioned resources are especially handy when using this book as a reference. Were it not for the tables and sidebars it would be difficult to look up things like how to set the field separator in different tools (-t in sort, -d in cut, -F in awk) or how to ensure case-insensitivity (-i in grep, -f in sort). The topics the authors cover throughout the book are interesting, but the real meat is in chapters 3, 6, 7, 9, 10, which discuss regular expressions, sed, awk (Robbins is the maintainer of gawk and also the co-author/author of books on awk), control flow, command evaluation, and file manipulation. Most of the other chapters are applications of the topics introduced up to that point, and serve to drive home the lessons already learned (though there are pleasant exceptions to this pattern, e.g. the section on crontab in ch. 13, or the material on the Unix filesystem in Appendix B). The writing is generally relaxed and at times borderline silly, e.g. "exit 42 #Return the answer to the ultimate question" or "root) nasty stuff here #Danger Will Robinson, danger!". Importantly, the entire book is focused on scripting that is compatible with the POSIX standard(s) (e.g., the authors prefer printf to echo) -- it is similar in that sense to Peter Seebach's book on portable shell scripting from Apress. Apart from the pointers on the behavior of different shells scattered throughout the volume, the authors have also devoted ch. 14 to portability gotchas and shell-language extensions.
The Bad: despite the tutorial nature of this text, it does have a few pedagogical flaws. These include the use of concepts before they are introduced (e.g. here-documents are used in ch. 4 but are mentioned by name only in ch. 5; the ${varname:-word} operator is used in ch. 5 but is not defined until ch. 6; the authors use >&2 three times in ch. 6 before pointing out that they will explain it in ch. 7). Such minor slip-ups extend to the use of concepts that are just not explained anywhere in the book (e.g. in ch. 3 the d command in sed, or in ch. 5 the -c option in grep). In yet other cases, the authors simply do not practice what they preach (e.g. in ch. 7 they recommend $() for command substitution, but then use `` in all but one of the examples in chapter 8, titled "Production Scripts"). On a different note, using this volume as a reference is not as easy as it should be. Tracking down an explanation months after you've finished reading the book can be frustrating, as I will illustrate with a specific example: the index entry for globbing says "see pathname expansion"; going to the index entry for pathname expansion we are pointed only to p. 496 (the glossary entry for that term), but not to any sections in any of the chapters. In the glossary entry on p. 496 we are told that globbing a.k.a. pathname expansion is also called wildcarding. Heading back to the index, no entry for wildcarding is to be found; there's an entry for wildcard expansion, instead, which looks relevant. Unfortunately, that entry not only points to irrelevant sections, but also ends with the inimitable "see also pathname expansion". All the while, subsection 7.5.2 is titled "Wildcarding", but you wouldn't get there simply by using the index. Sadly, the table of contents is similarly unhelpful in this context, since it includes sections, but not subsections.
This book could be shorter, but it's still worth reading. I especially enjoyed the sections on regular expressions and on awk. As already explained, readers who know nothing about shell scripting may find this a difficult read, so they might want to first go over "Learning the bash shell" by Newham & Rosenblatt or a similar volume. Finally, access to an ebook version can make up for the deficiencies of the index when using Robbins' & Beebe's text as a reference. All in all, 4.5 stars.
Alex Gezerlis
Korn Shell is the popular one and now I find myself even more comfortable and confident in writing shell scripts with heavy error trapping and being elegant in exiting properly. Excellent book and now I'm on to reading the O'Reilly book "Learing the Korn Shell" by Bill Rosenblatt
I'm now writing a lot of little (and not so little; 1200 lines of bash scripts so far) shell scripts. There were always several little nuances that always bugged me, but the examples helped me remember how to do what.
And there are a lot of examples of not only bash (and sh, ksh) but sed, awk, and others that help you along.
Worth keeping on your bookshelf. I'd buy it again in a second.
How much do I like Shell Scripting? Well, I've hard the printed copy for years, but I recently bought the electronic copy as well so I'd have it on my Kindle.
Maybe some IT geek, hackers, linux distribution developers... and embedded engineers!
If you develop embedded system based on linux, you will have to do with sh scripts & friends.
You can do a lot of things with a good script, better than writing your-own-cross-compiled-c-code.
This book can help you in going deep and use the power you have immediately available even on the smallest linux busybox installation.
I liked it, I enjoyed reading it, and it helped (and helps) me in my work.
I found the awk chapter a bit less good, but this is not a book on awk.
Someday perhaps this will serve as a good reference. In the meantime, I'm gonna work with Python and Powershell to get my regex on.
Top reviews from other countries
‥そういったわけで、内容はわからないのですが‥きっと素晴らしすぎる内容で、(宗教団体経由で??)韓国あたりに、送られていったのかもしれません。
‥二千円台で、購入したのに‥購入しなおそうかと思ったのですが‥価格が二倍近くに上がっていたようでした。
Es erfüllt letztendlich genau seinen Zweck, ist aber nicht vollständig "was man von einem Buch mit diesem Titel und vor allem dieser Seiten Zahl nicht erwarten kann"
Man sollte vielleicht darüber nachdenke sich noch das grep sowie das "sed & awk" Buch dazu zu kaufen.








