USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

bash Cookbook - Solutions and Examples for bash Users

 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Reviews and Interviews
View previous topic :: View next topic  
Author Message
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Tue Jun 26, 2024 1:50 pm    Post subject: bash Cookbook - Solutions and Examples for bash Users Reply with quote

Reviewer: Crouse

Bashscripts.org - Review of "bash Cookbook"
The book: bash Cookbook - Solutions and Examples for bash Users
By Carl Albing, JP Vossen, Cameron Newham
Pages: 622
First Edition: May 2024
ISBN 10: 0-596-52678-4
ISBN 13: 9780596526788



Book Link: http://www.oreilly.com/catalog/9780596526788/
Code Examples: http://examples.oreilly.com/bashckbk/

Price: $49.99 USD

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



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
julian516
Jr. Member


Joined: 16 Jul 2024
Posts: 90
Location: Columbia, KY

PostPosted: Fri Jul 24, 2024 11:58 am    Post subject: Reply with quote

Thanks crouse! As a relative newcomer to Linux, I know next to nothing about Bash scripting and I have wanted to learn. Your listing of the three O'Reilly books has suggested how I might approach the topic.

I suspect that list will help a number of people.



_________________
Ubuntu 9.10
Mandriva 2024 KDE
siduxKDE/antiX
Back to top
View user's profile Send private message
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Jul 24, 2024 1:27 pm    Post subject: Reply with quote

if you are comfortable in the BaSH command line already then http://tldp.org/LDP/abs/html/ is a great reference to learn scripting from, and it is free.



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
crouse
Site Admin


Joined: 17 Apr 2024
Posts: 11833
Location: Iowa

PostPosted: Fri Jul 24, 2024 6:33 pm    Post subject: Reply with quote

There are 622 pages in this book..... I dare say you will learn "something" from this book you won't find in the man pages or the http://tldp.org/LDP/abs/html/ Wink
Quote:
you will find a few new twists and solutions that you might not have thought of otherwise


but yes, much documentation is available for free on the net.... particularly tldp.org

and oddly enough..... http://bashscripts.org Very Happy Very Happy Very Happy Very Happy



_________________
Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
Back to top
View user's profile Send private message Visit poster's website AIM Address
Lord.DragonFly.of.Dawn
Advanced Member


Joined: 18 Jul 2024
Posts: 607
Location: South Portland, Maine, USA, Earth, Sol System

PostPosted: Fri Jul 24, 2024 10:03 pm    Post subject: Reply with quote

that was the other site i was trying to think of!

i must be getting old.... either that our i need to up my coffee intake



_________________
ArchLinux x86_64 - Custom Built Desktop
ArchLinux x86_64 - Compaq CQ50 Laptop
ArchLinux i686 - Acer Aspire One Netbook
ArchLinux i686 - Dell Presario ze2000 (w/ shattered LCD)

PuppyLinux, CloneZilla, PartedMagic, DBAN - rescue thumbdrives
Windows 7 (x86_64 desktop alternate boot)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » Reviews and Interviews All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse