Bash Cookbook unlocks the secrets of bash, the most widely used Unix shell. Inside, you???ll find complete working scripts that let you customize and harness the power of your operating system, along with short cuts to help you work more quickly and efficiently. Whether you???re an administrator, a software developer, or an end user, mastering the shell is essential for anyone working with Linux, Mac OS X, or any Unix system. This book demonstrates shell scripting the way Unix masters practice the craft.Packed with examples and advice for everyone from shell beginners to advanced developers, bash Cookbook focuses strongly on practical remedies rather than theory. It offers many ways to automate routine tasks, and it provides scripting solutions to scores of common problems related to input/output, file manipulation, program execution, administrative tasks, and much more. Each recipe includes one or more code examples and a discussion of why the solution works.bash Cookbook helps you:Perform common tasks with solutions that address the repertoire of things you do every dayWrite scripts to convert between DOS and Unix formats, work with compressed files, edit files automatically, work with dates and times, and moreApply many tools commonly used with shell programs, including grep, sed, awk, and sortIntegrate recipes for interactive use, such as command historyCreate functions, use aliases, and perform other tasks that make your life easierLearn short cuts that allow you to work faster by typing lessWrite more secure shell scripts that avoid the most common security weaknessesConfigure and customize bash to suit your individual needs and style.About the Authors 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,
O'Reilly's "Cookbook" series sometimes gives complex recipes for large tasks, but unfortunately a lot of its listings are just the basic commands of the language in question. That's the case with its Bash Cookbook.
Thus one finds recipes like "How to separate variable names from surrounding text" (consisting of nothing more than an encouragement to use ${...}), "How to export variables" (which is only a mention of the "export" syntax), or "Renaming many files" (the solution is a simple for loop). These are real basics of bash, or shells in general. So, if you have already read O'Reilly's Learning the bash Shell and Classic Shell Scripting, which I would strongly recommend, then this book will not be of much use to you. A proficient bash/Unix user would already know the vast majority of stuff in here.
If you have *not* read those or a comparable introduction to bash and Unix piped commands in general, then you won't really understand much this book, you would just be blindly copying commands. And if you just want to cargo-cult code, then there are innumerable free resources on the web to do so, which you can reach with just a quick Google search of the form "bash" + problem.
The book, already large, is padded with some appendices that are quite out of date: how to build bash from source (surely nearly every reader is using the version of bash shipped with his Linux distro), how to use version control (only the ancient RCS, CVS and SVN systems are described).
There is some meaty, still useful stuff in here like how to secure a shell script, so I cannot entirely knock the book, but mostly it duplicates content in the two rigorous bash/shell-scripting textbooks that I mentioned above.
Um... a good overview, with lots of little details on how bash works. There are places it isn't SUPER in depth, but for the most part it points you to other references then.
The actual content of this book is around 300 pages. The other 600 pages are filled by:
* too much-repeated info between chapters * too many repeated links in each chapter * too much reference and links to official and non-official and other OReilly books
The format of this book is question and answer. That's not good for learning, but only for reference. It's much easier and faster to find a solution for a problem by web search. Probably with much more depth and with multiple solutions or better solutions.
Książka dosyć gruba, przy tym dosyć droga. Mam wrażenie, że od ilości stron wydawcy ustalają cenę i tych stron dali za dużo na siłę. W każdym rozdziale znajdują się odnośniki, czasem treści kodów źródłowych itd, to rozdmuchuje lekturę. Np są 3 odnośniki i jest już 1 strona. Jest też dużo dodatków. Mimo, że wydana w 2007 roku i jest dosyć stary Bash, lektura jest świetna. Jak ktoś się uczył programowania skryptów w Bashu i czegoś nie wie, z niej się dowie. W niej jest praktycznie wszystko co było robione do 2007 roku. Wrócę jeszcze do ceny. 90 parę zł to za dużo. Na szczęście była wysprzedaż i lekturę można było kupić za coś koło 20 zł.
A well-written book with plenty of juicy technical details, that is strongly recommended to those who may find themselves writing BASH scripts longer than 50 lines on regular basis. A must read for SysAdmin and DevOps professionals.
This book is perfect. There's no single page you read that you don't end with a real 'I didn\'t know that' feeling or at least a little piece of new information.
This is a reference text, not a book one would normally read cover-to-cover. I've used it half-a-dozen times so far and it's proved useful. *** [three stars].
A large part of the time I spend using computers is spent on the command line. This is partly because I look after various servers, and partly because I choose to use a command line heavy interface.
Bash is my command line of choice, and this book is full of handy scripts and guidance on how to write your own in order to make the most of its abilities.
Well written and mostly well formatted (not always easy on kindle versions of coding books). The examples are also well paced.