Join Amazon Prime and ship Two-Day for free and Overnight for $3.99. Already a member? Sign in.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
59 used & new from $12.99

Have one to sell? Sell yours here
 
   
Unix Shell Programming (3rd Edition)
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get yours here.
 
  

Unix Shell Programming (3rd Edition) (Paperback)

by Stephen Kochan (Author), Patrick Wood (Author)
4.4 out of 5 stars See all reviews (39 customer reviews)

List Price: $39.99
Price: $28.43 & this item ships for FREE with Super Saver Shipping. Details
You Save: $11.56 (29%)
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, July 21? Choose One-Day Shipping at checkout. Details
38 new from $19.06 21 used from $12.99
Also Available in: List Price: Our Price: Other Offers:
Hardcover 4 used & new from $99.95
Paperback 23 used & new from $0.01
School & Library Binding $45.20 $45.20 Order it used!

Special Offers and Product Promotions


Frequently Bought Together

Unix Shell Programming (3rd Edition) + Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus + Classic Shell Scripting
Price For All Three: $96.41

Show availability and shipping details


Customers Who Bought This Item Also Bought

Classic Shell Scripting

Classic Shell Scripting

by Arnold Robbins
4.6 out of 5 stars (10)  $23.07
sed & awk (2nd Edition)

sed & awk (2nd Edition)

by Dale Dougherty
4.3 out of 5 stars (40)  $23.07
Learning Perl, 5th Edition

Learning Perl, 5th Edition

by Randal Schwartz
4.2 out of 5 stars (296)  $26.39
UNIX(R) Shells by Example (4th Edition)

UNIX(R) Shells by Example (4th Edition)

by Ellie Quigley
4.4 out of 5 stars (50)  $40.49
Unix in a Nutshell, Fourth Edition

Unix in a Nutshell, Fourth Edition

by Arnold Robbins
4.4 out of 5 stars (58)  $23.07
Explore similar items

Editorial Reviews

Product Description

Unix Shell Programming is a tutorial aimed at helping Unix and Linux users get optimal performance out of their operating out of their operating system. It shows them how to take control of their systems and work efficiently by harnessing the power of the shell to solve common problems. The reader learns everything he or she needs to know to customize the way a Unix system responds.

The vast majority of Unix users utilize the Korn shell or some variant of the Bourne shell, such as bash. Three are covered in the third edition of Unix Shell Programming. It begins with a generalized tutorial of Unix and tools and then moves into detailed coverage of shell programming.

Topics covered include: regular expressions, the kernel and the utilities, command files, parameters, manipulating text filters, understanding and debugging shell scripts, creating and utilizing variables, tools, processes, and customizing the shell.



From the Back Cover

Unix Shell Programming is a tutorial aimed at helping Unix and Linux users get optimal performance out of their operating out of their operating system. It shows them how to take control of their systems and work efficiently by harnessing the power of the shell to solve common problems. The reader learns everything he or she needs to know to customize the way a Unix system responds.

The vast majority of Unix users utilize the Korn shell or some variant of the Bourne shell, such as bash. Three are covered in the third edition of Unix Shell Programming. It begins with a generalized tutorial of Unix and tools and then moves into detailed coverage of shell programming.

Topics covered include: regular expressions, the kernel and the utilities, command files, parameters, manipulating text filters, understanding and debugging shell scripts, creating and utilizing variables, tools, processes, and customizing the shell.

See all Editorial Reviews


Product Details

  • Paperback: 456 pages
  • Publisher: Sams; 3 edition (March 9, 2003)
  • Language: English
  • ISBN-10: 0672324903
  • ISBN-13: 978-0672324901
  • Product Dimensions: 9 x 7.3 x 0.9 inches
  • Shipping Weight: 1.7 pounds (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars See all reviews (39 customer reviews)
  • Amazon.com Sales Rank: #208,027 in Books (See Bestsellers in Books)

    Popular in these categories: (What's this?)

    #10 in  Books > Computers & Internet > Programming > APIs & Operating Environments > Unix
    #18 in  Books > Computers & Internet > Operating Systems > Unix > Shell

Look Inside This Book
Browse Sample Pages:
Table of Contents | First Pages | Index


Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
Check the boxes next to the tags you consider relevant or enter your own tags in the field below.
(2)

Your tags: Add your first tag
 
Help others find this product — tag it for Amazon search
No one has tagged this product for Amazon search yet. Why not be the first to suggest a search for which it should appear?

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

39 Reviews
5 star:
 (23)
4 star:
 (11)
3 star:
 (3)
2 star:
 (1)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.4 out of 5 stars (39 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
41 of 44 people found the following review helpful:
4.0 out of 5 stars A fairly painless, helpful introduction to UNIX scripting, May 24, 2003
"UNIX Shell Programming, 3rd Ed" (USP3E) is probably the book to buy if you're a beginning UNIX user with dreams of writing shell scripts. The book does a good job of explaining many of the key concepts needed to get real work done on UNIX systems. While readers with advanced backgrounds will prefer a book like "Mastering UNIX Shell Scripting" by Randal Michael, USP3E will please most UNIX scripting newbies.

USP3E begins with a review of the basics -- working with files and directories, redirecting input/output, pipes, and the shell itself. Chapter four's discussion of regular expressions is generally useful, although "saving matched characters" on p. 64 was confusing. This made the "command substitution" material on p. 129 unclear. Chapter six was devoted to the use of different sorts of quotes, which seems excessive until one realizes the significant differences between using single and double quotation marks in scripts. Attention to detail like this, along with generous inclusion of sample scripts, helped this book earn a strong rating.

While the book includes examples of using sed, awk is not mentioned. Sed could have received more coverage as well. While the authors direct interested readers to other books, perhaps a future edition might include chapters devoted to sed and awk? While the publisher's site doesn't mention a source for errata, it is available by contacting the authors.

Overall, I liked this book. It is up-to-date and compares favorably to the other books I consider reading to learn more about UNIX shell scripting. Armed with the knowledge gained from USP3E, readers should be equipped to automate some routine tasks. They will also be able to progress to more advanced shell scripting resources.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
29 of 31 people found the following review helpful:
3.0 out of 5 stars Somewhat dated...., July 18, 2001
By Dr. Lee D. Carlson (Baltimore, Maryland USA) - See all my reviews
(TOP 100 REVIEWER)    (REAL NAME)      
Although published in 1990, this book could still function well as an introduction to UNIX and (Bourne) shell programming, provided one is aware of some changes to the shell in most implementations of UNIX since that date. Also, the Perl language has come on strong in recent years, and depending on your tastes (and time), that language can be used with great efficiency to do the tasks that are traditionally done in the shell.

After a quick review of the basics of UNIX, the authors give a purely descriptive explanation of the UNIX shell in chapter 3. Emphasizing that it is an interpretive language, the most commonly used shell commands are discussed in chapter 4, starting with a discussion of regular expressions. The cut, paste, sed, tr, grep, uniq, and sort commands are treated in detail.

In chapter 5, one begins the actual task of creating shell programs using shell variables. There is no data typing in the shell, so values can be assigned to variables without noting their type as integer, float, etc. The authors only briefly discuss the mechanism in shell programming. The method by which the shell interprets quotation characters is covered in the next chapter. The single, double, backslash, and back quote characters are discussed in detail. Noting that arithmetic operations are done on values stored in variables in the shell, the authors show to proceed with these operations using the expr program.

The mechanisms for passing arguments to shell programs is treated in chapter 7, the authors showing how to write shell programs that take arguments typed on the command line. The role of positional variables for delaying assignment after normal command line processing is discussed. The $#, and $* variables are discussed briefly, with $# getting set to the number of arguments typed on the command line and $* used for programs taking a variable number of arguments. The shift command is explained well as a method to allow one to use more than nine arguments to a program.

The ability of shell programs to execute decision blocks is treated in chapter 8, via the if statement. The role of the test and exit commands are in if blocks are discussed in good detail. In addition, the case command, familiar to C programmers is introduced as a technique to allow a single value to be compared against other values. The && and || constructs are used to show the reader how to execute commands that are contingent on the success or failure of the preceding command.

Program loops, via the for, while, and until commands are discussed in chapter 9, followed in the next chapter by a discussion of how to read data from the terminal or from a file using the read command. The ability to perform I/O redirection is discussed also.

Local and export variables are discussed in the next chapter on the user environment, and the authors give a good summary of how these work in shell programming. More discussion on parameter passing is done in chapter 12, with the different methods of parameter substitution given detailed treatment. The authors show how to use the $0 variable to check whether two or more programs have been executed, and how to use the set command to set shell options and to reassign positional parameters. This is followed in the next chapter by a discussion of the eval command, which makes the shell scan the command line twice before executing it, and the wait command, which will allow serialization in program execution. The trap and type commands are discussed also.

The Korn shell is discussed in chapter 15, with emphasis on the features added to Korn shell that cannot be found in the Bourne shell. The vi and emacs capability of this shell is briefly discussed in this chapter. The differences between Korn shell functions and Bourne shell functions are discussed in detail by the authors. Most importantly, the ability of the Korn shell to do integer arithmetic without using the expr command is discussed via the let command, which is built-in to the Korn shell. Also, the capability of the Korn shell to support data typing is discussed, along with its pattern matching capabilities. Pattern matching is done most efficiently now using Perl however.

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



 
13 of 13 people found the following review helpful:
4.0 out of 5 stars First and only shell programming book I own, May 22, 1998
I bought this book when it was originally published back in 1990. I started with little programming experience, and no shell programming experience. It brought me up to speed quickly. I no longer write many shell scripts; however, I still use it as a desk reference when I do. For any UNIX system administrator, this book (or one just like it) is essential.

BTW, I have been looking for a better book all these years and haven't found one. It's not that I think this book is perfect, rather there just aren't many good books on this subject.

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


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

4.0 out of 5 stars Very well done introduction to shell programming
This book doesn't theoretically require one to know anything about programming. Still, it is quite helpful to have experience with some programming language, since comparisons... Read more
Published 12 months ago by L. Bardini

5.0 out of 5 stars A solid reference book on shell programming
This third edition is still based on the classic UNIX shell programming book Kochan put out in the late eighties. Read more
Published 17 months ago by James B. Griffin

5.0 out of 5 stars A must have!
I was recently thrown into the world of Unix at work. Like most people I was a windows programmer/user and didn't even know what Unix was. Read more
Published 22 months ago by XML Master

4.0 out of 5 stars Get "Classic Shell Scripting" by Arnold Robbins instead..
This book is good, actually quite good, but for a beginner. The reason of the title and four stars is, for a beginner, I would still recomend the gold standard, age old "The UNIX... Read more
Published on March 7, 2007 by P. CHAKRABARTI

5.0 out of 5 stars Nice Beginner or Reference Unix / Linux Book
I wish this was the book we used last quarter since it is MUCH better. It is this quarter's UNIX / Linux textbook (Shell Scripting although it also covers the basic commands)... Read more
Published on January 23, 2007 by Sound Doctrine

3.0 out of 5 stars Okay, but not for heavy-duty UNIX-LINUX users.
Okay, but not for heavy-duty UNIX-LINUX users. This book is okay as an intro to the use of the shell. Read more
Published on November 16, 2006 by Computer_Geek

1.0 out of 5 stars Not something I should have bought...
I bought this book looking at the reviews, but hell no, the reviews are overly exageraating, all you get here are something you can get in simple man pages, examples are very... Read more
Published on August 22, 2006 by T. DEVANESAN

4.0 out of 5 stars Excellent book
It's a great book, even if you have some unix background, it will teach you why things happen the way it happens. Read more
Published on February 9, 2006 by Matias Emanuel Surdi

5.0 out of 5 stars Sun Instructor Review
Stephen Kochan has written an excellent book. This course book could be used as a nice supplement to the Shell Programming course offered by Sun. Read more
Published on September 12, 2005 by M. Baker

5.0 out of 5 stars Best book to learn Shell scripting
I started using Unix in 1988 and new nothing about shell scripting on Unix. I have been mostly working on PDP and VAX-VMS systems. Read more
Published on April 1, 2005 by Raymond Allo

Only search this product's reviews



Customer Discussions

 Beta (What's this?)
New! See all customer communities, and bookmark your communities to keep track of them.
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

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


Active discussions in related forums
   


Product Information from the Amapedia Community

Beta (What's this?)



Look for Similar Items by Category


Get Creative with Dremel Power Tools

Dremel power tools
Take on your next project with a versatile Dremel power tool. Shop now and save on Dremel power tools and take advantage of FREE Super Saver Shipping to save even more.

Shop Dremel tools

 

Big Savings in Books

Bargain Books
Find great titles at fantastic prices in our Bargain Books Store.
 

Keep Your Yard Looking Good

Shop for Pruners
A few basic pruning cuts will help rejuvenate your landscape and control the size of shrubs and trees.

Shop all pruners

 

The Powerful Black & Decker Blower/Vac

Shop for the Black & Decker LH4500 Blower/Vac
The LH4500 blower/vac by Black & Decker is ideal for clearing yard debris from driveways, sidewalks, decks, yards, and garages.

Shop all Black & Decker

 
Ad

 

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.


Where's My Stuff?

Shipping & Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

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

Look to the right column to find helpful suggestions for your shopping session.

Continue shopping: Top Sellers
Free
Free by Chris Anderson
Paranoia
Paranoia by Joseph Finder
Glenn Beck's Common Sense
Glenn Beck's Common Sense

Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates