or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
29 used & new from $30.99

Have one to sell? Sell yours here
 
   
Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source)
 
 

Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source) (Paperback)

~ (Author)
Key Phrases: esac done shift, esac printf, stty size, The Script, Julian Day, Degrees Fahrenheit (more...)
4.7 out of 5 stars  See all reviews (7 customer reviews)

List Price: $39.99
Price: $32.57 & this item ships for FREE with Super Saver Shipping. Details
You Save: $7.42 (19%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, November 17? Choose One-Day Shipping at checkout. Details
20 new from $30.99 9 used from $43.96

Formats

Amazon Price New from Used from
  Kindle Edition, May 6, 2005 $26.06 -- --
  Paperback, May 5, 2005 $32.57 $30.99 $43.96

Frequently Bought Together

Customers buy this book with Classic Shell Scripting by Nelson H. F. Beebe

Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source) + Classic Shell Scripting
  • This item: Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source) by Chris F. A. Johnson

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Classic Shell Scripting by Nelson H. F. Beebe

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Automating UNIX and Linux Administration (The Expert's Voice)

Automating UNIX and Linux Administration (The Expert's Voice)

by Kirk Bauer
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
4.6 out of 5 stars (12)  $31.49
Wicked Cool Shell Scripts

Wicked Cool Shell Scripts

by Dave Taylor
4.2 out of 5 stars (34)  $19.77
Expert Shell Scripting (Expert's Voice in Open Source)

Expert Shell Scripting (Expert's Voice in Open Source)

by Ron Peters
4.3 out of 5 stars (3)  $32.57
Beginning Portable Shell Scripting: From Novice to Professional (Expert's Voice in Open Source)

Beginning Portable Shell Scripting: From Novice to Professional (Expert's Voice in Open Source)

by Peter Seebach
4.6 out of 5 stars (5)  $23.09
Explore similar items

Editorial Reviews

Product Description

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.</a></p> </blockquote> <p id="quoteAuthor">&#8212; Thomas Duff, Duffbert's Random Musings</p></div>

<p>This book is geared towards any Unix user who doesn't want to spend time creating or testing shell scripts. Instead, <i>Shell Scripting Recipes</i> dissects and explains over 150 much-needed and practical real-world examples, and then shows the reader how and when to appropriately use them.</p>

<p>Because most scripts found in this book are POSIX (Portable Operating System Interface)-compliant, they are supported by many of the major shell variants, including Bash, ksh and sh, among others. File conversion, system administration, and resource monitoring are just a few of the topics covered in this highly practical shell scripting reference.</p>



About the Author

Chris F.A. Johnson was introduced to Unix in 1990, and learned shell scripting because there was no C compiler on the system. His first major project was a menu-driven, user-extensible database system with report generator. Johnson constantly writes scripts to automate system administration tasks, and his recent shell projects have included a member database, menuing system, and POP3 mail filtering and retrieval. When not pushing shell scripting to the limit, Johnson teaches chess and composes cryptic crosswords.

Product Details

  • Paperback: 448 pages
  • Publisher: Apress; 1 edition (May 6, 2005)
  • Language: English
  • ISBN-10: 1590594711
  • ISBN-13: 978-1590594711
  • Product Dimensions: 9.1 x 7 x 1 inches
  • Shipping Weight: 1.5 pounds (View shipping rates and policies)
  • Average Customer Review: 4.7 out of 5 stars  See all reviews (7 customer reviews)
  • Amazon.com Sales Rank: #365,103 in Books (See Bestsellers in Books)

More About the Author

Chris F. A. Johnson
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Chris F. A. Johnson Page

Inside This Book (learn more)

What Do Customers Ultimately Buy After Viewing This Item?


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(4)
(1)

Your tags: Add your first tag
 

 

Customer Reviews

7 Reviews
5 star:
 (5)
4 star:
 (2)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.7 out of 5 stars (7 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
12 of 12 people found the following review helpful:
5.0 out of 5 stars My Shell is a Programming Language?, October 3, 2005
By Raymond Brigleb (Portland, OR, United States) - See all my reviews
(REAL NAME)      
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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
15 of 16 people found the following review helpful:
4.0 out of 5 stars Unleash the power of the shell, November 27, 2005
While the Bourne shell is listed as a full fledged programming language, few people use it like that. Some of it is that they prefer more commonly acknowledged languages like Perl, Python or the like. However, with a book like Shell Scripting Recipes: A Problem-Solution Approach, they'll want to thin twice about it.

I remember my first forays into shell scripting. I didn't want to learn Perl (then the clearly dominant scripting language), and worked hard to learn shell, awk, and sed so that I could do the things I needed to do and automate as much as possible. It paid off, and even impressed a few die hard Perl fans. Less code to do simple tasks, faster to write, and always present. While I don't do nearly as much shell scripting as I used to, I still enjoy seeing someone do neat things in /bin/sh, ksh, or bash.

Chris Johnson's book is in the traditional line of a reference book, much like the O'Reilly cookbook series or, more accurately, the old tome, UNIX Power Tools. It's got a couple of non-recipe chapters, and the rest of it is a lot of fun, useful shell scripting.

Chapter 1 is an invaluable reference to large portions of the POSIX shell language. Johnson covers things like built in commands and program flow, special variables, and variable expansion. He also clearly covers the differences between the Bourne shell and the POSIX shell where they differ. If you're worried, using Bash will almost always work with the examples, I think.

At this point it's easy to think, "I can call out to external commands for a good chunk of the functions he develops." You can, but Johnson makes a compelling argument that shows the impact of a fraction of a second can add up quickly in loops. At this point, you're either agreeing with him and seeing the joy of a direct language like shell or you soon will.

Chapter 20 is a small set of recipes but they serve a different function, namely helping you manage all of these new shell scripts and functions. You can copy, instantiate new shell scripts more easily (by automating the redundant bits), or package them up with simple scripts. Handy tools, and a decent approach.

The recipes run the gamut from the simple to the uncommon, but they all illustrate how do accomplish useful tasks in a shell script. They include file conversion (DOS, UNIX, and Mac), string handling bits, filename management, complex date calculations, screen control capabilities, and even HTML processing. Some of my favorite recipes include the Postscript generation tools (!) and the database management tools. While some people have done these in shell scripts, I've usually seen them done using sloppy or confusing approaches. Johnson's code is clear, direct, and applicable.

That's probably the biggest strength to the book, Johnson's clear writing and examples. Some programming and scripting books try and show you neat tools to accomplish a task, but they don't do a good job of showing you how to translate it to your specific task. In Shell Scripting Recipes, Johnson chooses his code carefully, articulates how it works, and continually builds on a theme. If you pick a few scripts and study them, you'll see tips and tools you can use in your own shell scripts. He also has nicely abstracted scripts that let you recycle his functions in your own scripts with ease.

Overall I quite like Shell Scripting Recipes, I think that while it's easy to think less of the Bourne shell as a language, Johnson has done a good job of writing a concise set of examples, usable code, and in a format that is continually useful and clear. If you've been thinking about improving your shell prowess, this is the book for you.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
11 of 13 people found the following review helpful:
5.0 out of 5 stars Handy Shell Guide for Unix/Linux Users, July 9, 2005
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.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

4.0 out of 5 stars Useful
Useful. Good examples (but not for the absolute beginner). Korn shell users might want to also consider "Korn Shell: Programs for Your Survival at Work" by Larry L. Smith. Read more
Published on November 16, 2006 by Computer_Geek

5.0 out of 5 stars 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. Read more
Published on June 25, 2005 by Harold McFarland

5.0 out of 5 stars 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... Read more
Published on June 17, 2005 by Anthony Lawrence

5.0 out of 5 stars 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. Read more
Published on June 12, 2005 by Thomas Duff

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Anyone need psychology testbook- trying to sell a used copy 2 22 hours ago
textbook scam 72 1 day ago
Textbooks for Kindle DX? 61 7 days ago
Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.