Buy Used
Used - Good See details
$4.00 & eligible for FREE Super Saver Shipping on orders over $25. Details

or
Sign in to turn on 1-Click ordering.
 
   
UNIX Shell Programming, Revised Edition
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

UNIX Shell Programming, Revised Edition [Paperback]

Stephen G. Kochan (Author), Patrick H. Wood (Author)
4.5 out of 5 stars  See all reviews (45 customer reviews)


Available from these sellers.


5 new from $29.95 51 used from $0.01

Formats

Amazon Price New from Used from
School & Library Binding $45.20  
Paperback $24.75  
Paperback, December 1, 1989 --  
Book Supplement --  
There is a newer edition of this item:
Unix Shell Programming (3rd Edition) Unix Shell Programming (3rd Edition) 4.5 out of 5 stars (45)
$24.75
In Stock.
What Do Customers Ultimately Buy After Viewing This Item?
UNIX Shell Programming, Revised Edition
75% buy the item featured on this page:
UNIX Shell Programming, Revised Edition 4.5 out of 5 stars (45)
Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus
8% buy
Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus 4.4 out of 5 stars (21)
$42.34
Sams Teach Yourself Shell Programming in 24 Hours (2nd Edition)
6% buy
Sams Teach Yourself Shell Programming in 24 Hours (2nd Edition) 4.5 out of 5 stars (25)
$24.26
Classic Shell Scripting
6% buy
Classic Shell Scripting 4.5 out of 5 stars (12)
$23.07

Customers Who Bought This Item Also Bought


Editorial Reviews

Product Description

UNIX Shell Programming, Revised Edition, shows UNIX users how to quickly and easily automate routine tasks by taking command of the UNIX shell. The shell makes light work of big tasks by transferring your simple instructions into powerful commands that put UNIX through its paces.You don't have to be a programmer, or a UNIX expert, to use shell programming to take control of your environment--if you are acquainted with UNIX, this book can take you the rest of the way. If you are a programmer, you'll be surprised at the range of tasks you can automate with the shell--and at the speed and convenience the shell has over many high-level programming languages. If you're from the growing ranks of UNIX system administrators, this book shows how the shell can make your life easier while improving your service.
  • Complete instructions for the standard or "Bourne" shell, plus the "Korn" shell, destined to become the shell of choice
  • Many complete, practical programs and accompanying exercises to help you understand, remember, and check your progress
  • Simple, step-by-step tutorials that lead you through writing real shell programs

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. --This text refers to an alternate Paperback edition.


Product Details

  • Paperback: 512 pages
  • Publisher: Sams; 1st edition (December 1, 1989)
  • Language: English
  • ISBN-10: 067248448X
  • ISBN-13: 978-0672484483
  • Product Dimensions: 9 x 7.3 x 0.9 inches
  • Shipping Weight: 1.9 pounds
  • Average Customer Review: 4.5 out of 5 stars  See all reviews (45 customer reviews)
  • Amazon Bestsellers Rank: #246,498 in Books (See Top 100 in Books)
    #17 in  Books > Computers & Internet > Programming > APIs & Operating Environments > Unix
    #19 in  Books > Computers & Internet > Operating Systems > Unix > Shell

More About the Authors

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

Look Inside This Book

Tags Customers Associate with This Product

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

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

45 Reviews
5 star:
 (29)
4 star:
 (11)
3 star:
 (3)
2 star:
 (1)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
4.5 out of 5 stars (45 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.
Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
29 of 33 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)    (VINE VOICE)    (REAL NAME)   
This review is from: UNIX Shell Programming, Revised Edition (Paperback)
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.

Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No


 
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
This review is from: UNIX Shell Programming, Revised Edition (Paperback)
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.

Help other customers find the most helpful reviews  
Was this review helpful to you? Yes No

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

5.0 out of 5 stars Extremely good Unix book
Great Unix shell programming book. Focuses on unix commands and shell, not unix administration.

Book arrived quickly and in excellent shape.
Published 4 months ago by bookreader

5.0 out of 5 stars Still the best
This is my second copy. I made the mistake of loaning out the previous copy, and it grew legs and disappeared. They got the old edition, and now I have the new one. Read more
Published 6 months ago by Dino

5.0 out of 5 stars Great unix book
Great unix book. I had little unix experience and the book was just right for me. I've only read the first 4 chapters but have picked up a lot already.
Published 11 months ago by fredg

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 on July 14, 2008 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 on February 8, 2008 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 on September 20, 2007 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

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
Search Customer Discussions
Search all Amazon discussions
   



So You'd Like to...


Create a guide


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.