Product Details
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, JP Vossen, Cameron Newham

List Price: £38.50
Price: £20.87 & eligible for FREE Super Saver Delivery. Details

Availability: Usually dispatched within 24 hours
Dispatched from and sold by Amazon.co.uk

39 new or used available from £17.39

Average customer review:

Product Description

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.


Product Details

  • Amazon Sales Rank: #70403 in Books
  • Published on: 2007-05-24
  • Original language: English
  • Number of items: 1
  • Binding: Paperback
  • 598 pages

Editorial Reviews

About the Author
Carl Albing has worked for large companies and small startups, in technical as well as in managerial and marketing roles. He wrote compiler software while at NCR, medical image processing software at a small startup, distributed computing software for the premier supercomputing company Cray Research, Inc. His experience in software development goes back to the early 1970's working with the C Language and Unix. In the last few years, he has put new Linux and Java technologies to use for real-world business solutions. His education includes graduate work in Computer Science as well as a degree in Mathematics and an International MBA.

JP Vossen is the Engineering Manager for Counterpane Internet Security where he works on the company's build automation process - which is largely built with bash scripts, Perl, SQL, and CVS.

Cameron Newham is an information technology developer living in the United Kingdom. Originally from Australia, Cameron completed a Bachelor of Science degree in information technology and geography at the University of Western Australia. In his spare time he can be found working on his project to digitally record buildings of architectural interest in England. He also has more than a passing interest in a diverse range of subjects including photography, space science, digital imaging, ecclesiology, and architectural history. He is the author of "Learning the bash Shell, Third Edition".


Customer Reviews

Bashscripts.org - Review of "bash Cookbook" 5
I had been waiting "im"-patiently for this book to show up. Ever since I noticed it was going to be written, I had been looking forward to reading it. I must say, I wasn't disappointed. I really enjoyed the book and definitely learned a few new things along the way.

This book is designed for intermediate to advanced bash users. The book states in the preface that it is for "new" users as well as those more experienced. I think that they give too much credit to someone new too bash. If you don't know what bash scripting is, this book ISN'T for you. Try the book "Learning the Bash Shell", it would be much better to learn from. I'll say it one more time -- This book isn't for those new to shell scripting. In my opinion, it kind of picks up where "Learning the Bash Shell" and "Classic Shell Scripting" from O'reilly left off. It compliments both books pretty well. Where "Learning the Bash Shell" teaches you the basics, and "Classic Shell Scripting" builds on the concepts and materials covered in the chapter before, so it's a book that is best read front to back and not just used as a reference, this book is truly more of a reference that you can use to find solutions to different problems. Hence the "cookbook" in the title.

As an intermediate to advanced user, you will find many of the solutions very simple and straightforward, but I dare say, you will find a few new twists and solutions that you might not have thought of otherwise. When used a reference, it provides a nice Table of Contents with good descriptions that allow you to quickly find answers to many common problems. Examples are clear, concise, and well documented, making it fairly easy to follow along, even if you didn't understand the syntax of the code at first. I liked the fact they included many examples of sed,awk, and even ed, which are frequently used in shell scripting, but many books barely mention those programs.

The Appendix sections (A-E) take up 83 pages of the book, several of these could very well have just been additional chapters of the book. Appendix E "Building bash from Source" could have been chapter 1. However, each chapter/section is a "recipe" so I suppose it wouldn't have been in line with the rest of the chapters at that point. All in all, a very interesting book that I read front to back. It will be a valuable reference tool, that's easy to navigate and use. The chapters I enjoyed the most were Chapter 14 "Writing Secure Shell Scripts", where they included a template for quick reference. Several of the techniques I already knew about, a few I did not. I also liked Chapter 11 "Working with Dates and Times". Many good ideas there, and some very interesting code for the "date -d" command.

There are 3 great books for shell scripters from O'reilly, this is one of them.

For the beginner "Learning the Bash Shell". It teaches you the basics.
For the intermediate user "Classic Shell Scripting". It builds on the basics, step by step.
For the intermeidate to advanced users "bash Cookbook". A reference guide for common problems.

I would probably recommend reading them in that order as well. "bash Cookbook" is definitely going to be easier to read and get use of if you already know basic shell scripting. All 3 books have that "tattered" look and a permanent place on my bookshelf. I would say, "bash Cookbook" is absolutely a book worth owning if you enjoy shell scripting. I don't think I've ever seen a more complete set of solutions in a shell scripting book. In the preface, one thing that caught my eye ..... But perhaps most importantly, we hope that when you have a question about how to do something or you need a hint, you will be able to easily find the right answer--or something close enough-- and save time and effort. ------ I think they accomplished their goal ! 5 out of 5. Excellent book...excellent.

Dave Crouse
Bashscripts.org http://bashscripts.org
USA Linux Users Group http://usalug.org

Definitely a "must-have" for every system administrator/programmer5
This is absolutely a book that every Unix/Linux programmer or administrator must have on their bookshelf.
I use 'bash' in my daily scripts/routines on different operating systems (from Linux to Mac OS X) and although I consider myself an experienced user, I often need to look back in the documentation and find the answer to my needs.
However, going through the documentation sometimes may not be enough.
That's when this book comes in handy.
The great thing is that tips and directions are organised in different sections based on the topic/area/goal of intervention.
For example, the book offers invaluable 'recipes' on common tasks such as administration, parsing, security, file searching and management, input, output, dates and times, etc.
I definitely recommend this book.

good book and hard to read5
Before you buy this book you should have good knowledge of UNIX/Linux system. I am new to bash programming and before I read this book, I wouldn't know the difference between bash and shell however I have used mac ox tiger as well as I have been using Ubuntu Linux for more than two years I had done some basic Perl programming for the web which helped me while reading this book. The book starts with basic bash and then goes into the deep. I found it hard to read not because the writer hasn't done a good job, but because the subject is very complex. unfortunately the book is not for beginners as the writer will show you the command and will explain its logic and that's it. don't assume the writer will tell you for example open the terminal and type the following , etc. the book is straight forward bashing bash.it is very rich in contents. it fluently made me understand how piping works. When you come from the windows world to Linux how painful it is to do things in Linux that only takes a click of a button in windows. However I have used the command line to install, remove and do basic shell scripting without realizing that what i was doing is a shell programming yet I realized how much I am missing . I will be studying this book for a year or so, having read all of it, the book gave me two very important scripts that i will be using very often and they are:
1- parsing HTML files and 2-creating a web album automatically from a directory that contains hundreds of images. I can't imagine myself creating web albums manually nor using ide tools such as dream weaver (windows) bluefish(Linux) any more. The script is by far more powerful than any GUI tools (targeting programmer), in relation to speed or even layout(with a few modification to the original script) The book is full of tips, the question is can you understand them all(it will take time depends on how much you already know). also the book helped me to understand compressing and decompressing files (tarbal, gz zip etc). I am glad I bought this book however I will have to do some googling in order to get the most out of this book.This book has extended its usability by providing a appendix at the back that can be used as a quick reference. If you know your way around Linux command then this book will give a clear idea of what those commands mean and how to use them. If you are an advanced user this book is full of tips and it is very logical. If you haven't used the command line before then this book is not a good start.

Note
Because I don't know much about C so the most useful language I found is Perl in relation to bash. Bash has borrowed lots from C and bash is the default shell in Ubuntu hardy the operating system I currently use. Also bash can be integrated into windows system via cygwin. Good luck