bash Cookbook : Solutions and Examples for bash Users (Cookbooks (O'Reilly))

  Author:    Cameron Newham, Carl Albing, J Vossen, Jp Vossen
  ISBN:    0596526784
  Sales Rank:    26743
  Published:    2006-10-01
  Publisher:    O'Reilly Media, Inc.
  # Pages:    600
  Binding:    Paperback
  Avg. Rating:    5.0 based on 7 reviews
  Used Offers:    13 from $26.49
  Amazon Price:    $31.49
  (Data above last updated:  2008-11-18 08:40:43 EST)
  
  
Sort customer reviews by:
  
Show All Reviews on Page      Hide All Reviews on Page
   
  
bash Cookbook : Solutions and Examples for bash Users (Cookbooks (O'Reilly))
  
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.

                  Reader Reviews 1 - 7 of 7                 
  
  
Review
Date
Review
Rating(5 High)
Review
Helpful
to:
Customer Review Reviewer
Info
Permanent
Link
Reader Reviews Below Sorted by Newest First
10-30-08 5 (NA)
(Hide Review...)  it was worth waiting for it
Reviewer Permalink
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.)
(Review Data Last Updated: 2008-11-18 08:42:16 EST)
09-12-08 1 0\2
(Hide Review...)  cookbook is right- teaches you nothing and awful for a novice
Reviewer Permalink
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. All it gives is "recipes-" solutions for problems that you may never even encounter. Also, these recipes are directed at people with a ton of experience in the shell already. They reference tons of commands with functions that vary over the entirety of what the shell can do without even an index that gives one sentence descriptions of the commands. I'm a novice. I don't know what cat, grep, eval, etc. do. And it is very annoying to have to read the book with my computer in my lap so I can reference the man pages. If you are a novice don't buy this book.
(Review Data Last Updated: 2008-10-31 05:39:10 EST)
06-10-08 5 1\1
(Hide Review...)  What I've been waiting for!
Reviewer Permalink
This book is indeed a "Cookbook"; nice examples on how to do lots of stuff. It is nicely categorized and the explanations/discussions are easy to follow. The authors seem to have lots of experience, and are honest enough to even explain when NOT to use bash; when for example perl would do better.

Highly recommended if you want to get stuff done using bash.
(Review Data Last Updated: 2008-09-13 06:14:44 EST)
05-10-08 5 (NA)
(Hide Review...)  Good collection of recipes. Covers bash 3.2
Reviewer Permalink
Currently this is the only book that specifically covers bash 3.2, the version that contain new and interesting features like =~ operator for "normal" regular expression matching.

The main advantage of the book that it really covers a lot of ground and provides system administrators and users with a lot of good and difficult to find tips about customizing of the environment and making yourself more productive.

Chapters 5-6 which provide good overview of new features introduced in version 3.x including "normal" regular expressions pattern matching ( operator =~) and C-style for loop. One problem with shells traditionally use two completely obsolete notations for regular expressions (basic regular expression often known as DOS-style regular expressions plus quite perverse prefix notation ). Bash 3.2 did not fixes this problem as this is a problem of Unix in general (Unix can be called an Os that uses a dozen of different definitions of regular expressions :-) that but at least added a normal regular expression notion to the list.

After chapters 5 and 6 I recommend reading chapters 9, 17 and 19 and then the rest. While chapters are of very uneven quality, usually you can find at least one useful tip in each.

The spectrum of bash related tips and useful mini-scripts is quote substantial. The authors cover classic things like customizing prompt quite well. The book is not only about bash it covers a lot of ground including use of classic Unix utilities in scripting (most notably grep, find, sort, and date) along with related topics such as use of pipes and I/O redirection.

Of course for such a complex topic there are some shortcomings. It's a pretty difficult task to write a good cookbook but authors did an excellent job and provided many very valuable tips that can help to improve both system administrators and power users productivity.

One of the problems for a cookbook is a good organization and specifically a good starting chapter and here authors failed. Some chapters are half-baked. The Chapter about version control is badly written and very superficial. The authors just mention a couple of system without any details. And in this topic the devil is in details.

Some bash features are explained superficially. For example bash has horrible implementation of pushd/popd/dirs troika and it not that easy to use them productively. One notable deficiency is that there is no way to suppress duplicates which in essence make this feature almost unusable. The authors treatment looks like a baseless advertizing of a poorly implemented feature.

But I hope that the authors will improve the book in the next edition and I am reluctant to downgrade the book based on those flaws. After all, this is a cookbook and it should be judged by the best recipes not the worst.
(Review Data Last Updated: 2008-06-10 04:54:56 EST)
03-01-08 4 3\3
(Hide Review...)  Keep it close, you will use it
Reviewer Permalink
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.
(Review Data Last Updated: 2008-05-20 04:57:52 EST)
07-23-07 5 7\10
(Hide Review...)  Taking Bash to the next level
Reviewer Permalink
Linux system admin is something I do as part of my job. I've been able to acquire the basics and get the job done, but I knew that there were better ways to get the job done. Nothing like having an expert to help learn the ins and outs.

This book allowed me to take it to the next level. There are many excellent examples on how to get it done, as well as advice on things that should not be done.

There is a good mix of newbie info as well as useful tips for the seasoned veteran. There's usually more than one way to get the job done, and this book showed me some new, better ways to accomplish the task at hand.

If you're working with bash, you'll find something useful in this book.
(Review Data Last Updated: 2008-03-01 22:10:38 EST)
06-25-07 5 1\1
(Hide Review...)  Solutions to problems for bash users of all skill levels
Reviewer Permalink
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.
(Review Data Last Updated: 2007-07-24 03:14:18 EST)
  
                  Reader Reviews 1 - 7 of 7                 
  
  
  
  
  
  

Because the data used to generate this site come from outside sources, VeryWellSaid.com cannot guarantee the completeness or accuracy of the data.
Search VeryWellSaid™
Google
Web VeryWellSaid™
New subjects are added every week.
View Subjects Below by:
* Top Selling
 (click category name, left)
* Top-Rated Top Sellers
 (click 'Top Rated', right)
In the news...  
Dubai\UAE Top Rated
Influenza\Bird Flu Top Rated
Iraq Top Rated
Supreme Court Top Rated
All Books Top Rated
Arts Top Rated
Photography Top Rated
Digital Photography Top Rated
Digital Cameras Top Rated
Biography Top Rated
Business Top Rated
Management Top Rated
Marketing Top Rated
Sales Top Rated
Stocks Top Rated
Bonds Top Rated
Real Estate Top Rated
Trading Top Rated
Commodities Trading Top Rated
Time Management Top Rated
Starting A Business Top Rated
Children's Top Rated
Comics Top Rated
Computers Top Rated
PC Top Rated
Mac Top Rated
Programming Top Rated
Design Patterns Top Rated
.Net Top Rated
C# Top Rated
Vb.Net Top Rated
Asp.Net Top Rated
Java Top Rated
Python Top Rated
PHP Top Rated
Perl Top Rated
Javascript Top Rated
Ajax Top Rated
CSS Top Rated
Open Source Top Rated
SQL Top Rated
Databases Top Rated
Oracle Top Rated
MySql Top Rated
Sql Server Top Rated
IIS Top Rated
Apache Top Rated
Linux Top Rated
Windows Server Top Rated
Project Management Top Rated
HTML Top Rated
UML Top Rated
IT Certifications Top Rated
Cisco Certifications Top Rated
MCSE Top Rated
MCSD Top Rated
Cooking Top Rated
Italian Cooking Top Rated
Vegetarian Cooking Top Rated
Wine Top Rated
Engineering Top Rated
Entertainment Top Rated
Health Top Rated
Nutrition Top Rated
Dieting Top Rated
Sex Top Rated
History Top Rated
Military History Top Rated
British History Top Rated
Middle East History Top Rated
Land Battles Top Rated
Naval Warfare Top Rated
Air Warfare Top Rated
9/11 Top Rated
Terrorism Top Rated
Home Top Rated
Mortgage\Home Equity Loan Top Rated
Cars Top Rated
Car Buying Top Rated
Sports Cars Top Rated
Cat Top Rated
Humor Top Rated
Horror Top Rated
Law Top Rated
IP Law Top Rated
Legal History Top Rated
Fiction Top Rated
Oprah's Book Club Top Rated
Medicine Top Rated
Cancer Top Rated
Stroke Top Rated
Heart Disease Top Rated
Fertility Top Rated
Diabetes Top Rated
Pharmacology Top Rated
Back Problems Top Rated
Menopause Top Rated
Thyroid Top Rated
Pain Top Rated
Organic Chemistry Top Rated
Immune System Top Rated
Mystery Top Rated
Nonfiction Top Rated
Outdoors Top Rated
Running Top Rated
Radio Control Models Top Rated
Guns Top Rated
Parenting Top Rated
Divorce Top Rated
Professional Top Rated
Reference Top Rated
Religion Top Rated
Romance Top Rated
Science Top Rated
Physics Top Rated
Chemistry Top Rated
Astronomy Top Rated
Psychology Top Rated
Science Fiction Top Rated
Sports Top Rated
Teens Top Rated
Travel Top Rated
USA Top Rated
Europe Top Rated
France Top Rated
Italy Top Rated
England Top Rated
China Top Rated
All Books Arts Biography Click Here For An A-Z Index Of All 213 Best-Seller Subjects Business Children's Comics
Computers Cooking Engineering Entertainment Health History Home Horror Humor Law Fiction Medicine Mystery
Nonfiction Outdoors Parenting Professional Reference Religion Romance Science Sci-Fi Sports Teens Travel
In Association with Amazon.com

Cache miss
(not cached)