or
Sign in to turn on 1-Click ordering.
or
Amazon Prime Free Trial required. Sign up when you check out. Learn More
More Buying Choices
Have one to sell? Sell yours here
KornShell Programming Tutorial
 
See larger image
 
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.

KornShell Programming Tutorial [Paperback]

Barry J. Rosenberg (Author)
4.8 out of 5 stars  See all reviews (37 customer reviews)

List Price: $49.99
Price: $36.62 & this item ships for FREE with Super Saver Shipping. Details
You Save: $13.37 (27%)
  Special Offers Available
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 7 left in stock--order soon (more on the way).
Want it delivered Monday, January 30? Choose One-Day Shipping at checkout. Details
Textbook Student FREE Two-Day Shipping for Students. Learn more

There is a newer edition of this item:
Hands-On KornShell93 Programming Hands-On KornShell93 Programming 3.8 out of 5 stars (8)
$40.45
In Stock.

Book Description

020156324X 978-0201563245 July 11, 1991 1
"This book is full of useful examples which will benefit anyone interested in programming in KornShell, especially novices."-David Korn, AT&T Bell Labs, Creator of KornShell The KornShell is the most important shell or interface, for the 1990's. It runs on the UNIX, OSF-1, MS-DOS, OS/2, and VMS operating systems. It supports every feature of the Bourne shell, and incorporates many of the good C shell features. If you program, you need the KornShell. If you want to learn the KornShell, you need this book. Barry Rosenberg makes learning and using the KornShell easy by writing in a light, humorous style. The book is packed with short non-trivial examples of shell scripts. Common programming pitfalls and their solutions are boldly highlighted in BEWARE sections throughout. Many chapters begin with sections of helpful hints for new programmers and for experienced programmers. Among its key features, the book: *illustrates pattern matching *focuses on string manipulation *details inheritance *includes a quick reference of KornShell statements 020156324XB04062001

Special Offers and Product Promotions

  • Buy $50 in qualifying physical textbooks, get $5 in Amazon MP3 Credit. Here's how (restrictions apply)

Frequently Bought Together

Customers buy this book with Unix in a Nutshell, Fourth Edition $20.65

KornShell Programming Tutorial + Unix in a Nutshell, Fourth Edition
  • This item: KornShell Programming Tutorial

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

  • Unix in a Nutshell, Fourth Edition

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



Editorial Reviews

From the Inside Flap

Research indicates that virtually no one actually reads prefaces in computer books. In fact, this preface could be about the Loch Ness Monster for all most readers care.

But why don't people read prefaces? Is it because prefaces sometimes get too personal? ("..and I want to thank Sal, who made this book possible.") Is it because the sentiments of nerdy authors can be a bit repulsive? ("..Sal, my MicroVAX, was always there when I needed her.") Is it because they are predictably self-deprecatory in an ironic way? ("..and I want to thank: list of 250 noted experts goes here for reviewing drafts of this manual. Naturally all mistakes are my own.") No, when it comes right down to it, people avoid prefaces because they're boring.

It is also de rigueur for the nerdish author to explain, folksinger style, why he or she decided to write this piece. I guess this book sort of came to me while I was camping out in the glorious Rocky Mountains. I was gazing at pristine waterfalls and awe-inspiring sunsets when I said to myself, "This land must be preserved. I shall write a KornShell book." Possessed by a demonic ecological fervor, I roared down that mountain in a snowmobile, fired up a 1200 watt workstation, and wrote it all down for you. I only ask that you use the power of the KornShell for good, rather than evil.

Actually, I've been writing programming manuals for many years under the pen name "Apollo Computer Inc." Recently, my agent insisted that I change it to "Hewlett-Packard Company," presumably because it sounded less ethnic. Through the years, I've been lucky enough to get lots of feedback from my readers. What do you think they ask for? More text? No. More syntax? Definitely not. When it comes right down to it, readers consistently ask for only one thing: more examples.

So, I listened to them and based this tutorial entirely on examples.

I feel that short, focused examples are more valuable than long, detailed examples, and I've written the book accordingly. The purpose of the book is not to make me look clever; it is to make you look clever. Nevertheless, I've sprinkled a few lengthy examples into the mix for those of you who enjoy that sort of thing.

When I was a mere lad my family doctor pointed to a massive encyclopedia of pharmaceuticals and told me that he could treat 90% of all patients with only six different medicines. Similarly, although the KornShell is a very rich language, my goal is to focus on the common script ailments and to leave the beriberi treatment to specialists.

Beginners may be wondering, " Is this book too hard for me?" No, probably not. Programmers experienced in various languages, though not in the KornShell, are probably wondering, "Is this book too wimpy for me?" No, probably not. To help guide both kinds of readers through the book, I've marked certain sections as being more appropriate for one group or the other. Beginners don't need an explanation of traps and experienced programmers already know what loops are.

Here's how I've organized the book:

Chapter 1 introduces the KornShell and its features.
Chapter 2 contains some simple KornShell scripts to get you started.
Chapter 3 discusses data types.
Chapter 4 shows you how to do simple math.
Chapter 5 illustrates pattern matching.
Chapter 6 explains how to evaluate conditions.
Chapter 7 shows you how to set up loops.
Chapter 8 describes how to create simple menus.
Chapter 9 explains how to evaluate command line arguments.
Chapter 10 illustrates functions.
Chapter 11 has a lot of conceptual stuff in it about environments and inheritance. It also contains some sample start-up scripts.
Chapter 12 examines input and output.
Chapter 13 focuses on string manipulation.
Chapter 14 describes the many variables that are part of the KornShell.
Chapter 15 describes various advanced features of the KornShell. (This chapter is aimed at the sophisticated programmer.)
Chapter 16 contains a half-dozen lengthy KornShell examples.
Chapter 17 explains command line editing and the history file.

Appendix contains a syntactic quick reference. This appendix will become more valuable to you as your KornShell experience increase.

Since the KornShell runs on all sorts of operating systems, I've tried to keep operating system dependencies to a bare minimum. Nevertheless, my sense is that the majority of KornShell users are either working under the UNIX operating system or are at least marginally familiar with it. Therefore, in the examples that do contain commands, I've picked UNIX commands.

It is now time for the obligatory not to the tools that made this book possible. I used the \fBtroff\fR.mm macro package to format drafts of this book (an experience akin to running blindfold through nettles) and then came to my senses and converted the whole thing to Interleaf TPS. //cascade, my trusty Apollo DN4000 workstation, was always there when I needed her. It practically goes without saying that I created camera-ready copy for the book on a Hewlett-Packard laser printer.

My three primary reviewers were KornShell gurus David Korn, Steve Sommars, and Glenn Fowler, all of whom gave fantastic and diplomatic criticism.

I also received important criticism and help from Tom Barstow, Dave Beckedorf, Bart Hanlon, Warren Johnson, Ed Johnston, Mark Keil, Mike Kong, Alice Lynch, Dave Penfield, Will Roaf, Frank Rubinsky, John Weiss, Daryl Winters, Teri Witham, and other people whose names I have no doubt forgotten to list. Eric Eldred and Quentin Sullivan found so many bugs in early drafts that, and I mean this as a compliment, they should have a brand of insecticide named after them.

Judy Tarutz is my long-suffering editor. In person, Judy is a kind, gentle soul with an outrageous sense of humor. Give her a red pen though, and she turns into Conan the Barbarian. Her savage red pen cut a bloody swath through early drafts of this book. If we should chance to meet up one day, dear reader, I'll tell you all the "weak" jokes she made me take out.

I'd also like to thank the members of the Academy.

A consortium of great minds-those minds owned and operated by Ted Ricks, John Wait, Jack Danahy, and Steve Spicer-led me to the KornShell and helped me define the material for this book.

Finally, I'd like to thank the person who really made this book possible: my wife and best friend, Marilyn.

Whoops, almost forgot. Naturally, all mistakes are my own.

020156324XP04062001

From the Back Cover

"This book is full of useful examples which will benefit anyone interested in programming in KornShell, especially novices."-David Korn, AT&T Bell Labs, Creator of KornShell

The KornShell is the most important shell or interface, for the 1990's. It runs on the UNIX, OSF-1, MS-DOS, OS/2, and VMS operating systems. It supports every feature of the Bourne shell, and incorporates many of the good C shell features. If you program, you need the KornShell. If you want to learn the KornShell, you need this book.

Barry Rosenberg makes learning and using the KornShell easy by writing in a light, humorous style. The book is packed with short non-trivial examples of shell scripts. Common programming pitfalls and their solutions are boldly highlighted in BEWARE sections throughout. Many chapters begin with sections of helpful hints for new programmers and for experienced programmers.

Among its key features, the book:

  • illustrates pattern matching
  • focuses on string manipulation
  • details inheritance
  • includes a quick reference of KornShell statements



020156324XB04062001


Product Details

  • Paperback: 352 pages
  • Publisher: Addison-Wesley Professional; 1 edition (July 11, 1991)
  • Language: English
  • ISBN-10: 020156324X
  • ISBN-13: 978-0201563245
  • Product Dimensions: 9.1 x 7.4 x 0.8 inches
  • Shipping Weight: 1.3 pounds (View shipping rates and policies)
  • Average Customer Review: 4.8 out of 5 stars  See all reviews (37 customer reviews)
  • Amazon Best Sellers Rank: #317,731 in Books (See Top 100 in Books)

More About the Authors

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

 

Customer Reviews

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

19 of 19 people found the following review helpful:
5.0 out of 5 stars Impressed a tough critic!, June 13, 1999
By A Customer
This review is from: KornShell Programming Tutorial (Paperback)
The KornShell Programming Tutorial should be the model for all technical books. It is well organized and extremely well written. The book provides a ton of examples, and output is provided for each one--what a concept! Reading this book has enabled me to write support and debugging scripts for the program I currently work on, and if I need to refer to the book, I can find the topic quickly. The writing style is crystal-clear and right-to-the-point, and the humorous touches round out everything nicely. Thanks to Barry Rosenberg for caring enough to write a book on Korn Shell programming that a novice could actually read, understand, and apply.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


11 of 11 people found the following review helpful:
5.0 out of 5 stars The authority for Kornshell, October 25, 2000
By 
T. Parsons (Providence, RI) - See all my reviews
(REAL NAME)   
This review is from: KornShell Programming Tutorial (Paperback)
This is the best book I have seen on shell programming. I tried three other books before I found this one. This book is great because it offers examples, shows the output from the examples, and also describes them extremely well.

The other books I tried, and did not like are :

The Korn Shell: User & Programming Manual - I didn't like it because it lacked information on string handling. It seemed alright though.

Unix Shells by Example - Too many examples, if there is such a thing. The author didn't describe what was going on as well as this book does. The layout is confusing too.

Unix Shell programmer's interactive workbook - You need to be sitting at a computer to use this one. Wasn't very effective while reading it on the train.

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


11 of 11 people found the following review helpful:
5.0 out of 5 stars Amazon Customers are Smart IT People, March 24, 2001
By A Customer
This review is from: KornShell Programming Tutorial (Paperback)
I was looking for a book on introductory Korn shell programming and I came to Amazon to find one. I have several O'Reilly books and I naturally went to find a book from them but when I read the reviews I was disappointed. The reviewers said the O'Reilly book was poorly written etc and several said they were expecting a book like Barry Rosenberg's. I naturally went to find Barry's book and all the reviewers loved his book. I said 'ok what do I know' and I followed their advice and bought the book. I took it to work and showed it one of our senior Unix admins and he flipped it through it and was amazed. He was in the middle of writing some monitoring programs and he said the book covered some material on number substitution he was not able to find in any of the books on Korn Shell programming that he had. He was very impressed with the book and yep you guessed it he borrowed the book. Since he has taught me a lot of what I know about Unix I couldn't say no. So now when I need a book on a technical subject I am interested in I read the reviews and order it. The advice alone is worth the shipping. I am tired of buying books that gloss over the subject and give newbies nothing to build on except a few buzz words. This book is not one of those.
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











Only search this product's reviews




Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(2)
(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 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
   
Related forums



So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject