Skip to content
Scan a barcode
Scan
Paperback Shell Scripting Recipes: A Problem-Solution Approach Book

ISBN: 1590594711

ISBN13: 9781590594711

Shell Scripting Recipes: A Problem-Solution Approach

Select Format

Select Condition ThriftBooks Help Icon

Recommended

Format: Paperback

Condition: Like New

$8.69
Save $31.30!
List Price $39.99
Almost Gone, Only 1 Left!

Book Overview

In today's IT environment, harried system administrators are finding themselves more overworked than ever. This book helps them regain some of the lost time spent creating and testing shell scripts, and guides readers through more than 150 much-needed and practical real-world examples.

Customer Reviews

5 ratings

My Shell is a Programming Language?

This book was kind of an epiphany for me. I've been writing shell scripts for nearly as long as I've been writing programs, but I've always drawn a mental distinction between the two. There was programming, and then there was scripting. After coding in languages like Perl and then Ruby, the distinction has become increasingly blurred. Many of my "scripts" have proven far, far more useful than anything I've written in a "proper" programming language! They back up my servers, they keep me informed of problems, they've saved me a minute here, a minute there, for perhaps ten years now! So what, really, is the distinction? I think, to some extent, a shell script is ultimately just limited by a lack of any libraries of code. It lends itself well to simple tasks, but if you do anything even moderately complex, you have to stop and switch to Perl or Ruby. But now Mr. Johnson has written a book that more or less creates a library in your shell script. And the tasks he writes about are so incredibly common, and his recipes so well organized, that you can just flip to a chapter like "Backing Up the Drive" or "Good Housekeeping," and find a dozen solutions to questions you're guaranteed to run into when writing your shell scripts. This book also does an excellent job of showing examples that rely on as few external programs as possible - making them perfectly portable. This is the most useful book on shell scripting out there, and I wish I could have picked it up ten years ago. If I had, it would still be on my shelf today.

Handy Shell Guide for Unix/Linux Users

Shell Scripting Recipes provides the reader with a handy reference for shell tasks that range from the common (how do I extract a portion of a string?) to the complex but sometimes entertaining (find words that fit together on a grid aka make your own crossword). The author does a great job in his layout by presenting the problem, listing the solution and then explaining how it works. The script solutions and examples are broken down by topic and each chapter is indexed on the side of the book for easy reference by the reader. The book was written for those who have had some Unix/Linux experience under their belt and now want to explore some of the power of the shell itself. Seasoned BASH shell users know that one of the most powerful aspects of the system is the ability to create applications that perform necessary tasks or functions just by using shell scripting. This book would be ideal for anyone who wants to get more out of their system that just using the GUI-interface that has become so common. Most of all, it covers a lot of problems that occur everyday and that we sometime spend hours looking for a solution for. Things such as removing excess linefeeds from a file, reformatting text, retrieving data automatically and other related tasks -- things that shell scripting excels at providing a mechanism to solve. Not for the beginner, but a must-have for the experienced Unix (particularly BASH shell) user.

Great resource for Bourne-type shell scripting

If you are using a Bourne-type shell, and BASH in particular then you will find a lot of valuable information in this book. Author Chris F. A. Johnson provides an extensive education on scripting including scripts for viewing, editing, and manipulating files, manipulating strings, altering the path variable, monitoring the file system, filtering spam, backing up, archiving, deleting, and many other common tasks. How far can you go with a shell script? He even gives a working example of a database application written completely in script. On the other hand if you just want to have some fun there are even scripts for creating anagrams, fitting words into a crossword, or finding words that contain a given set of characters. While the book is really written for the technically oriented reader, even the very basics that most users should already know are still covered. The format is more typical of what computer technicians want - this is the item to be discussed, this is how it works, this is an example, move on to the next one. When I am looking for answers this is the format I prefer and I found this book extremely useful. It will be on my bookshelf as one of the first to grab when I want to do scripting in Linux. Advanced and powerful, a real resource for the power user of the Bourne shell, Shell Scripting Recipes is highly recommended.

Wonderful resource

Although all the expected mundane script tricks and tips are here, I was surprised that Chris tackles tasks that I would have given up on and turned to Perl or other higher level languages. Great book, you will learn a lot. Everything you'd expect and much, much more. Highly recommended, probably the best scripting book I've read.

Great book for "R & D"...

I'm a strong believer in "R & D"... "Rob & Duplicate". Rather than reinvent the wheel, I'd prefer find code that works and use/modify it to fit my purposes. Chris F. A. Johnson has a book that fits that mindset perfectly... Shell Scripting Recipes - A Problem-Solution Approach (Apress). Chapter List: The POSIX Shell and Command-Line Utilities; Playing With Files - Viewing, Manipulating, And Editing Text Files; String Briefs; What's In A Word?; Scripting By Numbers; Loose Names Sink Scripts - Bringing Sanity To Filenames; Treading A Righteous PATH; The Dating Game; Good Housekeeping - Monitoring And Tidying Up File Systems; POP Goes The E-Mail; PostScript - More Than An Afterthought; Screenplay - The screen-funcs Library; Backing Up The Drive; Aging, Archiving, And Deleting Files; Covering All Your Databases; Home On The Web; Taking Care Of Business; Random Acts Of Scripting; A Smorgasbord Of Scripts; Script Development Management; Internet Scripting Resources; Index Johnson has written a book that is perfect for the person who has studied the basics and now wants to start applying their knowledge. The book is one page after another of scripts written to solve specific issues and scenarios that can be solved using scripting techniques. Each problem has the format of description, "How It Works", "Usage", "The Script", and any "Notes" that might apply to this situation. The vast majority of problems are covered in two or less pages, so the scripts and examples are very tight and concise. The scripts were tested by the author using bash, pdksh, KornShell 93, and ash. If this is the type and flavor of shell scripting you use, they you'll be able to use the scripts without too many fears of finding problems. If the author knows another technique to make the script applicable to more types of shell environments, those will be noted in the Notes for the particular problem. I really liked the focused nature of the material and writing. This is the type of book that will either solve a specific problem you have or will give you ideas on automating/simplifying something that you've lived with for far too long. And with repeated perusals, you may find gems you overlooked the first time that now address a current need. Definitely the type of book that deserves to be on your bookshelf with dog-eared pages throughout.
Copyright © 2024 Thriftbooks.com Terms of Use | Privacy Policy | Do Not Sell/Share My Personal Information | Cookie Policy | Cookie Preferences | Accessibility Statement
ThriftBooks® and the ThriftBooks® logo are registered trademarks of Thrift Books Global, LLC
GoDaddy Verified and Secured