Classic Shell Scripting and over one million other books are available for Amazon Kindle. Learn more



or
Sign in to turn on 1-Click ordering
Sell Us Your Item
For a $8.52 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading Classic Shell Scripting on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Classic Shell Scripting [Paperback]

Arnold Robbins , Nelson H.F. Beebe
4.6 out of 5 stars  See all reviews (17 customer reviews)

List Price: $39.99
Price: $26.65 & FREE Shipping. Details
You Save: $13.34 (33%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.
Want it Thursday, June 20? Choose One-Day Shipping at checkout. Details

Formats

Amazon Price New from Used from
Kindle Edition $17.27  
Paperback $26.65  
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

May 1, 2005

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.


Frequently Bought Together

Classic Shell Scripting + sed and awk Pocket Reference, 2nd Edition + Learning the vi and Vim Editors
Price for all three: $56.92

Buy the selected items together


Editorial Reviews

About the Author

Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has worked with Unix systems since 1980, when he was introduced 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. He is also coauthor 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.

Nelson Beebe is a long time Unix user and system administrator, and has helped for years on Usenet newsgroups.


Product Details

  • Paperback: 560 pages
  • Publisher: O'Reilly Media; 1st edition (May 1, 2005)
  • Language: English
  • ISBN-10: 0596005954
  • ISBN-13: 978-0596005955
  • Product Dimensions: 7 x 1.1 x 9.2 inches
  • Shipping Weight: 1.6 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (17 customer reviews)
  • Amazon Best Sellers Rank: #45,891 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.6 out of 5 stars
(17)
4.6 out of 5 stars
3 star
0
2 star
0
1 star
0
Most Helpful Customer Reviews
80 of 81 people found the following review helpful
4.0 out of 5 stars Book Review: Classic Shell Scripting September 9, 2005
Format:Paperback
Classic Shell Scripting
Hidden Commands that Unlock the Power of Unix
By Arnold Robbins, Nelson H.F. Beebe
First Edition May 2005
ISBN: 0-596-00595-4
558 pages, $34.95
[...]

I found this to be quite a useful book for learning more about Unix/Linux shell scripting. I would consider this one to be an intermediate level text, and complete beginners might be better served by a more simplified book. There are quite a bit of in-depth details included, and many very nice examples and code snippets. Like all O'Reilly books, it is well organized and formatted, and clearly written.

The book opens with a brief history of Unix and how important the shell (and scripting) is to it. There are some comparisons with other programming languages, and why it is sometimes preferable to use a script versus a compiled program. The very basics of how scripts are written and used are also mentioned here, and beginners may want to refer to an additional book for more of the basic instructions.

The next few chapters cover mostly text processing with scripts, including searching, sorting, printing, extracting, and counting methods. Good examples are used, including the use of regular expressions and pipes to increase the power of your scripts. Following this, there are several chapters on more advanced scripting, including how to use variables, loops, functions, standard I/O, redirection, wildcards, using "awk", and working with external files. Extensive example code is provided throughout.

The remaining chapters of the book get into more advanced subjects such as database manipulation, process control, and increasing the security of scripts. Portability and shells other than bash are also discussed.
... Read more ›
Comment | 
Was this review helpful to you?
47 of 49 people found the following review helpful
5.0 out of 5 stars Practical and useful September 19, 2005
Format:Paperback
Great book. The emphasis is nicely split between actually using the shell itself and the whole supporting cast of unix tools (sed, awk, cut, join, sort etc.) The idea of carefully crafting solutions using the unix toolbox mindset is key. I also like the fact he doesn't try to teach to multiple shells, but first tries to emphasize portability by sticking mainly to a POSIX standard, and only later adds info about non standard shell topics. If I could only have one book on shell scripting, this would be it. The best description is 'Practical'.
Comment | 
Was this review helpful to you?
79 of 86 people found the following review helpful
By kievite
Format:Paperback
This might be a great second book on shell scripting. Can serve as a valuable add on to "Learning Korn shell" from O'Reilly -- also a very strong book on shell scripting.

The authors provide a lot of interesting and useful information that is difficult to find in other books. They devoted Ch 5 to piping and in 5.4 "Word List" they discuss famous Doug McIlroy alternative solution to Donald Knuth program of creating the list of the n most-frequent words, with counts of their frequency of occurrence, sorted by descending count from an arbitrary text file.

The authors discuss many Unix tools that are used with shell (Unix toolbox). They provide a very good (but too brief) discussion of grep and find. Discussion of xargs (which is usually a sign on a good book on scripting) includes /dev/null trick, but unfortunately they do not mention an option -0n with which this trick makes the most sense.

One of the best chapters of the book is Ch. 13 devoted to process control. Also good is Chapter 11 that provides a solution to pretty complex and practically important for many system administrators task of merging passwd files in Unix. It provides a perfect insight into solving real sysadmins problems using AWK and shell.
Shortcomings are few. in "5.2. Structured Data for the Web" the authors should probably use AWK instead of SED. Also XML processing generally requires using a lexical analyzer, not regular expressions. Therefore a tag list example would be better converted to something simpler, for example generating C-tags for vi.
Comment | 
Was this review helpful to you?
30 of 34 people found the following review helpful
5.0 out of 5 stars Invaluable resource for shell scripters June 20, 2005
Format:Paperback
This is the book that I have been waiting for years for. It's classic O'Reilly, but it's better than that. Even the O'Reilly books have fallen short of being truly useful for shell scripting. I think this was primarily because the authors have been thinking more about language fundamentals then about teaching useful things. This book is targeted towards teaching shell scripting through practical application. This is the shell scripting book to get.
Comment | 
Was this review helpful to you?
15 of 18 people found the following review helpful
Format:Paperback
The purpose of this handy little book is to help someone who is working with Unix through the labyrinth of tools available and learn how and when to use them. It is important to note what is mentioned in the preface - "Throughout this book, we use the term Unix to mean not only commercial variants of the original Unix system, such as Solaris, Mac OS X, and HP-UX, but also the freely available workalike systems, such as GNU/Linux and the various BSD systems: BSD/OS, NetBSD, FreeBSD, and OpenBSD." I quote the book because the word "Unix" is about as descriptive as the word "car". The intended audience is anyone who is computer literate, already knows how to program, and is regularly faced with diverse problems in the workplace that must be solved with Unix tools. This book should give you a taste of which tool to turn to and when.

This book can be divided basically into two halves. The first half is a tutorial on writing Unix scripts. The book starts with a brief history of the Unix language and the philosophy behind Unix tools. Slowly, each chapter builds up your skill at script writing. You are shown how to differentiate between shells, how to work with text extensively, how to use loops, pipelines, variables, and decision statements, and how to work with files. There are detailed example scripts at every step along the way. By the end of chapter seven, you should know enough about basic shell scripting to be dangerous.

Starting in chapter 8, you are showed more application-related information. First, Chapter 8 shows and discusses some ready-made scripts for some tasks for which there is no out-of-the-box Unix solution. Some of the handy solutions shown are for path searching and automating software builds. Chapter 9 is a crash course on awk, and is aptly named.
... Read more ›
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars definition of oreilly excellence
the only book ive ever bought two copies of so i can use it wherever i am. does an excellent job of relating mysterious-seeming commands to the working of posix compliant systems,... Read more
Published 1 month ago by B. Jacobs-swearingen
5.0 out of 5 stars Great way to get started with Shell Scripting
I've been wanting to understand more about Shell Scripting for quite a while but really only ever learned enough to get basic things done or fix existing scripts as needed. Read more
Published 1 month ago by Mel
5.0 out of 5 stars Great book
Besides covering shell role, this book provides background for the understanding of how shell works. Read more
Published 3 months ago by André Cargnelutti
5.0 out of 5 stars Super reference
I use this book almost every day at work. I had not done any shell programing before. Now I make frequent use of it. The examples are clear and useful.
Published 5 months ago by Brian T. Rickman
5.0 out of 5 stars A solid book on portable shell scripting
"Classic Shell Scripting" by Arnold Robbins and Nelson H. F. Beebe is a decent text on portable shell scripting, which also contains a fair amount of awk. Read more
Published 22 months ago by Alexandros Gezerlis
4.0 out of 5 stars An embedded developer point of view
Who does "classic shell scripting" nowadays?
Maybe some IT geek, hackers, linux distribution developers... and embedded engineers! Read more
Published on February 27, 2010 by Marzoli Fausto Luigi
4.0 out of 5 stars Nuts and Bolts of Shell Scripting
This book tackles the concept of writing UNIX scripts not by telling you how to
write 'canned scripts,' but rather explains the various commands you will use to
create... Read more
Published on December 28, 2009 by Todd Hawley
5.0 out of 5 stars Excellent book to learn the basics
I've scrolled through lots of books, there is so much information out there, but this book has a tendency to keep it simple and to the point. Read more
Published on March 12, 2007 by M. Casco
4.0 out of 5 stars Nice overview of Bourne/sh scripting
This book provides a nice overview of the Bourne/sh shell's commands. I wish there were more examples with complete scripts. Read more
Published on November 16, 2006 by Computer_Geek
4.0 out of 5 stars Okay
I would say this is a pretty good book that covers it's subject very well, buti didn't use it much because i had also bought Unix in a Nutshell, Fourth Edition, which covered the... Read more
Published on March 11, 2006 by Ronnie T. Johnston
Search Customer Reviews
Only search this product's reviews




What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 



So You'd Like to...


Create a guide


Look for Similar Items by Category