bash Cookbook (Cookbooks (O'Reilly)) 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 $10.33 Gift Card
Trade in
More Buying Choices
Have one to sell? Sell yours here
Start reading bash Cookbook (Cookbooks (O'Reilly)) 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

 

Bash Cookbook: Solutions and Examples for Bash Users (Cookbooks (O'Reilly)) [Paperback]

Carl Albing , JP Vossen , Cameron Newham
4.6 out of 5 stars  See all reviews (16 customer reviews)

List Price: $49.99
Price: $31.67 & FREE Shipping. Details
You Save: $18.32 (37%)
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 Wednesday, May 29? Choose One-Day Shipping at checkout. Details
Free Two-Day Shipping for College Students with Amazon Student

Formats

Amazon Price New from Used from
Kindle Edition $22.79  
Paperback $31.67  
Sell Back Your Copy for $10.33
No matter where you bought them, get up to 70% back when you sell your books at Amazon.com.
Used Price$20.00
Trade-in Price$10.33
Price after
Trade-in
$9.67

Book Description

May 31, 2007 0596526784 978-0596526788 1

The key to mastering any Unix system, especially Linux and Mac OS X, is a thorough knowledge of shell scripting. Scripting is a way to harness and customize the power of any Unix system, and it's an essential skill for any Unix users, including system administrators and professional OS X developers. But beneath this simple promise lies a treacherous ocean of variations in Unix commands and standards.

bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages. Packed full of useful scripts, along with examples that explain how to create better scripts, this new cookbook gives professionals and power users everything they need to automate routine tasks and enable them to truly manage their systems -- rather than have their systems manage them.


Frequently Bought Together

Bash Cookbook: Solutions and Examples for Bash Users (Cookbooks (O'Reilly)) + Learning the bash Shell: Unix Shell Programming (In a Nutshell (O'Reilly)) + bash Pocket Reference (Pocket Reference (O'Reilly))
Price for all three: $61.47

Buy the selected items together


Editorial Reviews

About the Author

Carl Albing writes software for some of the biggest and fastest computers in the world. A software engineer for Cray, Inc. and an independent consultant, he is comfortable programming with C, Java, bash and much more. Carl is the coauthor of two books, one on Java development on Linux and his latest, the O'Reilly "bash Cookbook". A software consultant, manager, analyst and programmer with an amazing breadth of software experience, Carl has worked with companies in the US, Canada and Europe. He has worked for large companies and small startups, in technical as well as in managerial and marketing roles. Carl's software projects, past and present, involve the design and development of distributed computing software, medical image processing applications, compilers, medical devices, web-based factory floor automation, and more. Carl's education includes graduate work in Computer Science as well as a degree in Mathematics and an International MBA. He has spoken at conferences and training seminars in the US, Canada and Europe as well as local high schools and colleges. Carl enjoys speaking at user groups and seminars on Linux, C, and Java topics. You can visit http://www.carlalbing.com for his contact information.

JP Vossen has been working with computers since the early 80s and has been in the IT industry since the early 90s, specializing in Information Security since the late 90s. He's been fascinated with scripting and automation since he first understood what an autoexec.bat was, and was delighted to discover the power and flexibility of bash and GNU on Linux in the mid-90s. He has previously written for Information Security Magazine and SearchSecurity.com, among others. On those few occasion when he's not in front of a computer, he is usually taking something apart, putting something together, or both.

Cameron Newham lives in Perth, Western Australia. After completing a Bachelor of Science majoring in information technology and geography at the University of Western Australia, Cameron joined Universal Defence Systems (later to become Australian Defence Industries) as a software engineer. He has been with ADI for six years, working on various aspects of command and control systems. In his spare time Cameron can be found surfing the Internet, ballroom dancing, or driving his sports car. He also has more than a passing interest in space science, 3D graphics, synthesiser music, and Depeche Mode.


Product Details

  • Paperback: 624 pages
  • Publisher: O'Reilly Media; 1 edition (May 31, 2007)
  • Language: English
  • ISBN-10: 0596526784
  • ISBN-13: 978-0596526788
  • Product Dimensions: 7.1 x 1.1 x 9.2 inches
  • Shipping Weight: 1.9 pounds (View shipping rates and policies)
  • Average Customer Review: 4.6 out of 5 stars  See all reviews (16 customer reviews)
  • Amazon Best Sellers Rank: #24,206 in Books (See Top 100 in Books)

More About the Author

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

Customer Reviews

4.6 out of 5 stars
(16)
4.6 out of 5 stars
Most Helpful Customer Reviews
37 of 38 people found the following review helpful
Format:Paperback
This book covers the GNU Bourne Again Shell, which is a member of the Bourne family of shells that includes the original Bourne shell sh, the Korn shell ksh, and the Public Domain Korn Shell pdksh. This book is for anyone who uses a Unix or Linux system, as well as system administrators who may use several systems on any given day. Thus, there are solutions and useful sections for all levels of users including newcomers. This book is full of recipes for creating scripts and interacting with the shell that will allow you to greatly increase your productivity.

Chapter 1, "Beginning bash" covers what a shell is, why you should care about it, and then the basics of bash including how you get it on your system. The next five chapters are on the basics that you would need when working with any shell - standard I/O, command execution, shell variables, and shell logic and arithmetic. Next there are two chapters on "Intermediate Shell Tools". These chapters' recipes use some utilities that are not part of the shell, but which are so useful that it is hard to imagine using the shell without them, such as "sort" and "grep", for example. Chapter nine features recipes that allow you to find files by case, date, type, size, etc. Chapter 10, "Additional Features for Scripting" has much to do with code reuse, which is something you find even in scripting. Chapter 11, "Working with Dates and Times", seems like it would be very simple, but it's not. This chapter helps you get through the complexities of dealing with different formats for displaying the time and date and converting between various date formats.

Chapter 12, "End-User Tasks As Shell Scripts", shows you a few larger though not large examples of scripts. They are meant to give you useful, real world examples of actual uses of shell scripts beyond just system administration tasks. Chapter 13, "Parsing and Similar Tasks", is about tasks that will be familiar to programmers. It's not necessarily full of more advanced scripts than the other recipes in the book, but if you are not a programmer, these tasks might seem obscure or irrelevant to your use of bash. Topics covered include parsing HTML, setting up a database with MySQL, and both trimming and compressing whitespace. Chapter 14 is on dealing with the security of your shell scripts. Chapters 15 through 19 finish up the book starting with a chapter on advanced scripting that focuses on script portability. Chapter 16 is related to the previous chapter on portability and is concerned with configuring and customizing your bash environment. Chapter 17 is about miscellaneous items that didn't fit well into any other chapter. The subjects include capturing file metadata for recovery, sharing and logging sessions, and unzipping many ZIP files at once. Chapter 18 deals with shortcuts aimed at the limiting factor of many uses of bash - the typing speed of the user and shortcuts that cut down on the amount of typing necessary. The final chapter in the book, "Tips and Traps", deals with the common mistakes that bash users make.

All in all this is a very handy reference for a vast number of the tasks that you'll come across when scripting with the bash shell along with well-commented code. Highly recommended.
Comment | 
Was this review helpful to you?
17 of 18 people found the following review helpful
4.0 out of 5 stars Keep it close, you will use it February 29, 2008
Format:Paperback
These O'Reilly Cookbooks should be on every sysadmin's shelf. The Bash Cookbook is no different. Incredibly useful book. I didn't read it cover to cover but have gone back to it at least 15-20 times to pull out nuggets of info. The real-world, practical examples and solutions offered in this book provide the sysadmin with a virtual swiss army knife when working with bash.

Book was so useful, I bought two extra copies and sent them to coworkers.
Comment | 
Was this review helpful to you?
15 of 16 people found the following review helpful
5.0 out of 5 stars it was worth waiting for it October 30, 2008
Format:Paperback|Amazon Verified Purchase
More than ten years after the first edition of Learning the bash Shell (In a Nutshell (O'Reilly)) came out, there appeared a book that sums up all the experience and expertise the authors have gained since those times using this shell. If you're new to Unix/Linux, start with the work linked in above, but if you have been using either of these systems for some time and you would like to learn how to make your life easier, then this is the book for you.

Why? Because it concentrates on teaching you how to solve your problems. After a brief introduction and setting the basics the real depth begins: 1. a problem, 2. developing a solution, 3. evaluating the solution. And lots of examples. Naturally, the first step is to recognise that you have a problem, which the book also teaches you: some people tend to suffer while doing a repetitive and uninteresting chore but does not even occur to them that it does not need to be so: they can turn the chore into a hunt for automatisation putting their brain to some creative use, so instead of numbing their mind they start sharping it, and this is exactly where this book comes in.

Presently, amazon.com does not offer you a look into the book, but you can have a preview of every chapter and also a full view of the table of contents at the publisher's page: http://oreilly.com/catalog/9780596526788/toc.html. Than come back here, as Amazon's price is much better. (At the time of writing this, there is a 37% discount.)
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Neat book for varied recipes
I like this book because not only it teaches to intermediate to advanced level of bash but also the way it is presented. Read more
Published 20 months ago by Amanjeev S. Sethi
4.0 out of 5 stars Excellent resource
If you are just starting out, you may be wondering which bash book is right for you. While "learning the bash shell" is no doubt a good place to start, you may also have a good... Read more
Published on April 6, 2011 by Mr. Ben
5.0 out of 5 stars A spectacular book for learning shell scripting!
I recently had modify and debug a large, fairly complicated script. Beforehand I just knew the very basics of scripting, so I had a big learning curve. This book was a godsend. Read more
Published on December 24, 2010 by Eric
5.0 out of 5 stars Another Great O'Reilly Cookbook
The book is awesome and fulfills all my expectations of what a cookbook should be. You can ignore the 1-star review because that reviewer just made the mistake of thinking... Read more
Published on May 22, 2010 by Salvatore R. Mangano
5.0 out of 5 stars Very good book
Good book about bash. If you are not a bash expert, but you like bash, then read it and your bash skill will be improved. Read more
Published on August 26, 2009 by i5513
5.0 out of 5 stars Paid for itself in 5 minutes
I had one of those questions today about whether an option exists for a particular built-in command, 'type', and was about to painstakingly page through the bash man page as usual,... Read more
Published on March 6, 2009 by Anne
5.0 out of 5 stars Great Cookbook
Bash Cookbook is a great book for anyone who is interested in learning more about bash and shell scripting. Read more
Published on February 3, 2009 by Andrei Mouravski
5.0 out of 5 stars Great book, but not for beginners
Great examples and excellent explanations on why users should do (or not do) things in certain ways when using BASH. Read more
Published on January 13, 2009 by Zaine Ridling
5.0 out of 5 stars Good book to read
I like this book. I will recommend it to someone who has some bash experience since it's not organized as a reference or study guide.
Published on November 29, 2008 by Ying Zuo
1.0 out of 5 stars cookbook is right- teaches you nothing and awful for a novice
When I read the description the book said that "bash Cookbook" teaches shell scripting the way Unix masters practice the craft." Not even close. This book doesn't teach a thing. Read more
Published on September 12, 2008 by Ross
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