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

Have one to sell? Sell yours here
 
   
Portable Shell Programming: An Extensive Collection of Bourne Shell Examples
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

Portable Shell Programming: An Extensive Collection of Bourne Shell Examples (Paperback)

~ (Author)
4.5 out of 5 stars  See all reviews (24 customer reviews)

List Price: $49.93
Price: $33.10 & this item ships for FREE with Super Saver Shipping. Details
You Save: $16.83 (34%)
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.

Only 5 left in stock--order soon (more on the way).

Want it delivered Tuesday, November 10? Choose One-Day Shipping at checkout. Details
14 new from $29.09 18 used from $11.78

Frequently Bought Together

Customers buy this book with Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source) by Chris F.A. Johnson

Portable Shell Programming: An Extensive Collection of Bourne Shell Examples + Shell Scripting Recipes: A Problem-Solution Approach (Expert's Voice in Open Source)

Customers Who Bought This Item Also Bought

Unix Power Tools, Third Edition

Unix Power Tools, Third Edition

by Shelley Powers
4.7 out of 5 stars (69)  $47.24
sed & awk (2nd Edition)

sed & awk (2nd Edition)

by Arnold Robbins
4.3 out of 5 stars (40)  $23.07
Classic Shell Scripting

Classic Shell Scripting

by Arnold Robbins
4.6 out of 5 stars (10)  $17.96
Introduction to Algorithms, Third Edition

Introduction to Algorithms, Third Edition

by Thomas H. Cormen
5.0 out of 5 stars (3)  $58.72
Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus

Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus

by Randal K. Michael
4.4 out of 5 stars (20)  $43.33
Explore similar items

Editorial Reviews

Product Description

Traditionally, books on shell programming present the shell as the user interface to UNIX. This complete guide shows how to use the shell to develop shell scripts, using the shell more like a programming language than a command interpreter. Covers shell syntax, portability on different UNIX systems, using shell scripts to catch or ignore signals, executing commands using the remote shell command, and using the shell's redirection syntaxes. For software development engineers, system administrators, and QA test engineers who work with UNIX computer systems.


From the Publisher

This complete guide shows how to use the shell to develop shell scripts, using the shell more like a programming language than a command interpreter. Covers shell syntax, portability on different UNIX systems, using shell scripts to catch or ignore signals, executing commands using the remote shell command, and using the shell's redirection syntaxes.

Product Details

  • Paperback: 288 pages
  • Publisher: Prentice Hall PTR; Pap/Dis edition (October 29, 1995)
  • Language: English
  • ISBN-10: 0134514947
  • ISBN-13: 978-0134514949
  • Product Dimensions: 9.1 x 7 x 0.7 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (24 customer reviews)
  • Amazon.com Sales Rank: #865,945 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #39 in  Books > Computers & Internet > Operating Systems > Unix > Shell

More About the Author

Bruce Blinn
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Bruce Blinn Page

Look Inside This Book


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.
 
(1)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

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

 
11 of 11 people found the following review helpful:
4.0 out of 5 stars Great Shell Programming Intro, June 14, 2003
By Kevin Taylor (Wheaton, IL United States) - See all my reviews
The author starts off with the assumption that the reader is technically savvy but has no knowledge of shell scripting. This means that the first chapter necessarily covers basic
syntax such as creating a script file, comments, file name expansion, quotes, control structures, pipes, etc. I found this chapter extremely useful for reviewing the basic building blocks that all shell scripts tend to share. This will be a valuable chapter for someone brand new to shell scripting or Unix-style operating systems. The 4 pages covering quoting was the most lucid coverage I have yet found.

Variable are covered comprehensively in Chapter 2. This chapter covers all the ways of declaring, initializing, assigning and passing variables. It also covers the Borne shell special variables, such as $?, $$, etc. I learned some new techniques for handling uninitialized variables using special Borne shell syntax, such as "${variable:?message}". This statement causes the script to print out the "message" and then terminate if the "variable" is not initialized.

The author next covers shell functions and built-in commands available in Borne shell. The 3 pages on shell functions is adequate to illustrate function syntax. The author also does an adequate job of examining function parameters, variables in functions, strategies for reusing functions and the different effects from executing a function in the current shell versus a subshell. The rest of the book shows numerous examples of functions, so the lack
of function examples here is acceptable. Next the author introduces the important built-in
commands such as : (null), . (dot), eval, exec, read, test, wait, and many others. All of the non-obvious commands have an example or two. Most of these commands are also used extensively in the remainder of the book.

The point of most shell scripts is to manipulate files, so I consider the material in Chapter 4 crucial. This chapter does a fine job of explaining the file descriptors (0,1,2) and redirection of input and output. The author then discusses opening, writing, reading,
closing and truncating files. Finally, "here" documents are covered. This is a nifty feature of Borne shells which allow the creation of "inline" documents.

Borne shells usually depend on the fact that they are running on a Unix-like system. In other words, most shell scripts interface with the operating system. Chapter 5 details how Bourne scripts interact with the environment they are running in. Coverage includes Environment Variables, child versus parent environments, getting user and system information, using signals, and, finally, remote commands. The coverage is not comprehensive, nor could it be. It would take volumes to comprehensively cover the UNIX environment in relation to shell scripts. With that said, the author presents a respectable subset of the most important topics.

The next short chapter first reviews the UNIX command line conventions, e.g. "command [options] [parameters]". The author then discusses the getopt(s) commands for parsing command line parameters and what to do when these commands are not available.

Filters are commands that get their data from the standard input, perform some transformation on the data, and then write the data to the standard output. More than one filter can be strung together to perform very complex transformations. This chapter presents an introduction to this important topic. The tools illustrated are pipes, sed and awk. This chapter, again, only presents an introduction. But the number of examples is impressive and so is the categorization. With this chapter, Chapter 8 and the man pages for sed and awk, a reader will be in a position to infuse his shell scripts with considerable power.

Chapter 9 and 10 are the culmination of the previous 8 chapters. Chapter 9 provides a library of shell functions that I found highly instructive. The list of functions are: CheckHostname, Clear, DownShift, FullName, GetYesNo, IsNewer, IsNumeric, IsSystemType, Prompt, Question, StrCmp, and, finally, SystemType.

The author presents an assortment of shell scripts that are written to be both instructive and useful. As with the functions in Chapter 9, I found these to be highly instructive. The list of scripts are: Cat, DirCmp, Kill, MkDir, Shar, Wc, addcolumn, dircopy, findcmd, findfile, findstr, hostaddr, and, finally, ptree.

No programming language guide would be complete without the obligatory coverage of debugging. This is an area of personal interest to me, because my experience in the industry has taught me that few programmers leave the university with adequate debugging skills. The art of debugging boils down to a set of heuristics for reproducing or capturing an error, narrowing down the potential causes to a manageable set of candidates, and then progressively simplifying until the exact cause of the problem can be understood and corrected. This chapter will not teach the reader to be a competent debugger. The chapter does illustrate common pitfalls that shell scripts contain. It also discusses the basic elements in tracing through a script and even touches on shell scripting style as a tool to reduce bugs. All good, common sense information.

Considering the title of the book, it would be expected that there would be a chapter on portability. This chapter presents some of the best material I have seen assembled on writing portable shell scripts. The author discusses System V versus BSD, subsets of commands, abstraction, locating commands and files, shell features, issues with a number of specific commands, and file and path names. If you are writing production scripts that may be shipped in a heterogeneous environment, this is required reading.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
11 of 11 people found the following review helpful:
5.0 out of 5 stars One of the best shell programming books I've read!, January 3, 2001
By R. EARLS "unixnut" (Westwood, Kansas USA) - See all my reviews
(REAL NAME)   
Although I've been shell programming for years, I still learned a lot of new material from this book. Unlike Bill Rosenblatt's book, "Learning the Korn Shell", this book is extremely well thought out and presents subjects in a logical order. I would even recommend this book to people new to shell programming. In addition, unlike most of the other books I've read, ALL of the examples actually work! Mr. Blinn has even taken the time to make sure the examples will work on most every platform (Solaris, HP-UX, ULTRIX, ...).

As the book states, we learn shell programming best by looking at examples of shell scripts. This book is a gold mine of examples which are practical and applicable to a System Administrator's every day job. They really help to reinforce some of the more advanced and/or cryptic shell programming features. Mr. Blinn also does an outstanding job of explaining each shell script in detail. He does not leave the reader guessing or confused.

To be fair, I have to include the fact that the diskette which came with my book was blank. However, by following the instructions in the book I was able to download them from Prentice Hall's FTP site in less than 5 minutes.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
10 of 10 people found the following review helpful:
5.0 out of 5 stars A great book of script examples., August 4, 1998
By A Customer
A great book for learning shell scripting. It starts out with general syntax but then the rest of the book in filled with micro examples of things you need to write scripts, like input, output, prompting, changing case, manipulating strings, parsing and extracting data, finding file sizes, checking free space, setting screen echo on/off, read with a timeout, text substitution, doing math, here files, etc. There are also sections on portability, debugging, and common problems. I am very happy with this book and use it often when I am scripting.
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

1.0 out of 5 stars Shame on you Prentice Hall!
I would give this book five stars on content. It is very well written and a very good read. However, the printing and binding of this book is abysmal. Read more
Published 4 months ago by A concerned American

5.0 out of 5 stars Great scripting resource
This book is a great resource for making sure your scripts are portable and can be run on any unix box. Read more
Published 18 months ago by Brian Walton

5.0 out of 5 stars Very very useful, with a few stupid omissions
I work in different scripting languages so I can never remember which syntax I use for which language. Read more
Published on January 24, 2007 by Benjamin Slade

5.0 out of 5 stars Best Borne-shell reference and examples
I rely on this book for looking up materials for my daily programming needs of Borne-shell. It has never failed me yet. Read more
Published on November 19, 2006 by T. Wang

5.0 out of 5 stars This Is The Book.
If you want to understand shell scripting, do not pass go, do not collect $200, just buy this book.
It's a classic: readable, useful, concise, illuminating. Read more
Published on September 27, 2006 by Daniel Kegel

5.0 out of 5 stars The scripting and the book are BOTH portable.
The scripting and the book are BOTH portable. The book covers all the important elements. Anything you forget is easily found in seconds maybe 1-2 minutes sometimes. Read more
Published on December 17, 2005 by Mark Twain Also

5.0 out of 5 stars The K&R of Shell Programming
If there is a book that better deserves this title, I am not aware of it. Blinn delivers a terse writing style that is clear and concise; reminiscent of the seminal text on C... Read more
Published on August 10, 2005 by DK Smith

4.0 out of 5 stars excellent
If you've done any intoductory shell programming at all, this book will get you started in more serious shell programming efforts. Read more
Published on February 27, 2004 by Jeff Pike

5.0 out of 5 stars Five stars for usefulness
Bruce Blinn has written a very useful, highly practical shell programming book.

I am working my way through the book but even after a chapter or two I have started to apply the... Read more

Published on November 7, 2002 by Edmund Mcguigan

5.0 out of 5 stars Extremely Efficient
Like a good programmer, Bruce Blinn writes his book very efficiently. He describes the command briefly
then uses well-thoughtout examples to show the power of that command and... Read more
Published on August 8, 2002 by Adam DeRidder

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
Textbooks for Kindle DX? 61 1 day ago
textbook scam 66 6 days ago
Amazon is a great place to buy textbooks! 35 18 days ago
Search Customer Discussions
Search all Amazon discussions
   



So You'd Like to...


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.