Only 1 left in stock (more on the way).
Ships from and sold by Gift-wrap available.
Hands-On KornShell93 Prog... has been added to your Cart
+ CDN$ 6.49 shipping
Used: Good | Details
Sold by Daily-Deal-
Condition: Used: Good
Comment: This Book is in Good Condition. Used Copy With Light Amount of Wear. 100% Guaranteed.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

Hands-On KornShell93 Programming Paperback – Oct 13 1998

5.0 out of 5 stars 1 customer review

See all formats and editions Hide other formats and editions
Amazon Price
New from Used from
"Please retry"
CDN$ 51.99
CDN$ 27.08 CDN$ 16.57

Harry Potter and the Cursed Child
click to open popover

No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.
Getting the download link through email is temporarily not available. Please check back later.

  • Apple
  • Android
  • Windows Phone
  • Android

To get the free app, enter your mobile phone number.

Product Details

  • Paperback: 480 pages
  • Publisher: Addison-Wesley Professional; 1 edition (Oct. 13 1998)
  • Language: English
  • ISBN-10: 020131018X
  • ISBN-13: 978-0201310184
  • Product Dimensions: 18.8 x 2.5 x 22.9 cm
  • Shipping Weight: 358 g
  • Average Customer Review: 5.0 out of 5 stars 1 customer review
  • Amazon Bestsellers Rank: #749,926 in Books (See Top 100 in Books)
  •  Would you like to update product info, give feedback on images, or tell us about a lower price?

  • See Complete Table of Contents

Product Description

From the Inside Flap


              . . . That No One Will Ever Read

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 SparcStation, 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.

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 percent 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. Many beginners need an explanation of loops, while experienced programmers need to know how KornShell loops differ from loops in other languages.

Since the KornShell runs on all sorts of operating systems, I've tried to keep operating system dependencies to a bare minimum. Nevertheless, I do assume that readers are either working directly on the UNIX operating system or indirectly on UNIX through a package like U/WIN.

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 Beckedorff, 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 Spice--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. Author's Note Regarding the ksh93 Edition

It has been a very long time since I wrote the ksh88 edition, entitled KornShell Programming Tutorial. I began to suspect as much when I noticed that of all the people acknowledged in this Preface, and I'm sure they were capital reviewer--intelligent, meticulous, helpful--the only familiar name was my wife's.

But how to resurrect a vanished book? All traces of the ksh88 edition had disappeared until 1997, when a fragment was found suspended in a piece of amber at a Chinese restaurant in Palo Alto. Working round the clock, scientists at Addison Wesley Longman were able to piece together most of the old book. When gaps were found, DNA sequences from Kernighan and Ritchie were substituted.

After reading KornShell Programming Tutorial, many readers asked me important questions such as, "How does a joke get to be in your book?" or "Couldn't you just write a preface next time and skip the rest of the stuff that came after it?" or "Did you hear the one about the traveling KornShell salesman and the system administrator's daughter?"

Actually, creating humor for this book is not as haphazard as it may seem. All jokes are put through a rigorous five-step Beta testing procedure. I need to ensure that a joke is just as funny on the tenth reading as it is on the first. Although not all Beta testers installed the jokes, I did get enough feedback to toss out a ridiculous amount of material, for example, the original start of Chapter 1 went like this: I first saw David Korn writing shell scripts in a small club in the Village in 1946. The post-War euphoria was contagious and it wasn't long before the whole room was up and swaying to a pounding UNIX beat.

In a second edition, the author is obliged to correct the occasional error or two that cropped up in the first edition. (A special note to all of you at the Strategic Air Command--you're absolutely right guys, it was supposed to be a comma, not a semicolon.) A pair of translators, Hideyuki Hayashi and Masataka Isoya, get the credit for finding the most mistakes in the ksh88 edition. These two were incredibly rigorous and could not have been more diplomatic. ("Barry-San, every word on page 233 appears to be a typo.") Yep, the truth is out there, but a lot of it failed to work its way into the ksh88 edition. To improve accuracy, Sarah Tuttle wrote a validation suite that tests most of the sample KornShell scripts appearing in this book.

When I wrote the KornShell Programming Tutorial book, KornShell88 was beginning to make KornShell86 obsolete. As I go to press with this book, Hands-On KornShell93 Programming, KornShell93 is starting to overtake KornShell88. The KornShell93 scripts are far richer than KornShell88, and I've focused this book completely on KornShell93. If you liked KornShell88, you're going to love KornShell93.

Several reviewers strongly suggested a chapter on CGI programming with KornShell. As an avid CGI programmer, I happily agreed.

The CD accompanying this book contains the U/WIN package, created by David Korn and a cast of thousands, and now commercially marketed by Global Technologies Development. The package contains all the popular UNIX utilities--the grep's and awk's and diff's you know and recognize--all ready to run on your Windows 95 machine. The following shows how I've organized the book. Chapter by Chapter Description 1  How the KornShell stacks up against other programming languages.
2  Writing simple KornShell scripts, executing them, debugging them, and so on.
3  Data types like strings, integers, floats, structures, arrays, and such.
4  Mathematics, which is surprisingly rich for a shell language.
5  Pattern matching, including the five uniquely KornShell wildcards.
6  Conditional evaluation.
7  Looping. You'll want to read it over and over and over again.
8  Creating simple menus with the select statement.
9  Passing arguments on the command line.
10  Functions, including regular KornShell functions, autoloaded functions, and extension functions written in C.
11  Start-up files, environments, exporting variables, and the like.
12  Input and output.
13  Manipulating strings--an area in which the KornShell excels.
14  Reserved variables like PATH and PS1. There are dozens of these.
15  Sending and trapping signals; running scripts in the background.
16  Command line editing, repeating previous commands, and such.
17  CGI scripting tutorial. The KornShell is a terrific choice for your next CGI program.
Appendix A  A quick reference of all statements in the KornShell. This appendix will become more valuable to you as your KornShell experience increases.
Appendix B  A very short HTML tutorial; this is just enough HTML to help understand what's going on in Chapter 17.

Primary reviewers for this book include John Allen, Chris Baron, Dave Beckedorff, Ann Hall, Bobby Higgins, Ollie Jones, Jeff Korn, David Korn, Charlie Northrup, and Bob Weil. Thanks also to Jason Jones, Mike Hendrickson, Marina Lang, and Marilyn Rash at Addison Wesley Longman. There's a saying in Japan that goes something like, "Everybody should climb Mt. Fuji once, but only a fool would climb it a second time." Dave Beckedorff--thanks for reviewing my book a second time. Thanks to the wonderful staff at Open Market, Inc. for their collective Web expertise.

The success of KornShell Programming Tutorial was primarily due to the collective "tough love" of its reviewers. Thank you again. Special thanks to Judy Tarutz for an editorial job that still amazes me seven years later.

And to my wife Marilyn--your love, support, and amazing patience is what really made this book.


From the Back Cover

Over the years, KornShell has evolved into a full-featured, powerful shell language. Familiarity with KornShell enables system and network professionals to extend the user environment and automate complex system-administration tasks for huge productivity gains. Bourne and C shell programmers will appreciate KornShell’s superior string handling, stronger data typing, and broader capabilities.

Hands-On KornShell93 Programming is a self-paced tutorial that introduces you to the essentials of KornShell programming. Based almost entirely on short, focused examples that demonstrate central concepts and effective programming techniques, it will quickly bring you up to speed.

The book reflects the newest version of KornShell, KSH93. It also provides coverage of significant developments, such as CGI programming with KornShell, and offers an in-depth look at KornShell string handling.

Humorously written, the book makes it easy to learn KornShell essentials, including data types, math, pattern matching, conditions, loops, menus, command-line arguments, functions, start-up scripts, I/O, strings, variables, background processes, and CGI scripts. Highlighted "Beware" sections will warn you of potential pitfalls and keep you on the track to learning effective KornShell programming.


See all Product Description

Customer Reviews

5.0 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See the customer review
Share your thoughts with other customers

Top Customer Reviews

Format: Paperback
This is a great book because it has short, practical, working examples of all ksh commands. It is a reference book that you can learn from. Between this, "Unix in a nutshell", and Unix man-pages - I need nothing more for day to day Unix tasks.
Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again.
Report abuse

Most Helpful Customer Reviews on (beta) HASH(0xa48672ac) out of 5 stars 12 reviews
10 of 12 people found the following review helpful
HASH(0xa3dcdcf0) out of 5 stars This book is better than most...BUT.... (rating=3.5) Dec 31 1998
By A Customer - Published on
Format: Paperback
Briefly: If you are an experienced programmer, know KSH 88 and want to learn KSH 93 - BUY THIS BOOK.
Good things: Extensive coverage of KSH 93 with all the new features. Additionally, techniques are employed that are very educational.
Bad things: Very sloppy editing.
To wit:
Data Types section, puts nameref above typeset - all other eg.s had typeset above synonym syntax.
Reserved Variables section - Glaring error - should be referring to $- when examples use $_ (previously covered).
Index is incorrect for "co-process". There are some typos as well (letters instead of letter "s"). Sheesh, Barry, these people are paid proofers for goodness sake...
Additionally, miniscule coverage of co-processes - one of the most powerful features in KSH!
AND my last criticism, poor guy ...
The mix of "if you are new to programming" vice "if you're an experienced programmer" - please drop it! This book is NOT FOR BEGINNERS period. Keep it for 12th level magic users ONLY. The mix is extremely distracting.
All in all - I give it 3.5 stars. 4 stars with correct editing and proofing. 4.5 stars if co-processes were covered extensively. 5 stars if he gets rid of the jokes --- (ok, I'm kidding there).
3 of 3 people found the following review helpful
HASH(0xa3dce174) out of 5 stars The best KornShell book your money can buy. March 3 1999
By A Customer - Published on
Format: Paperback
I also have the first edition, which has come in very useful on many ocassions over the past few years, and holds a prime place on my shelf. This book takes us to the next level and provides all the information for both the novice and experienced programmer or system adminstrator. It even takes us into the realms of HTML and CGI. This book is about KornShell programming, not a free software package. Look to GNU or FSF for that. For those that are running NT, look into the new "NT Services for UNIX" from Microsoft, which provides KornShell, a bunch of UNIX utilities, and better networking capabilities. To sum up, this book will go with the other one, close at hand.
2 of 2 people found the following review helpful
HASH(0xa3dce0f0) out of 5 stars A must have for Korn shell programmers who like example code Jan. 21 1999
By A Customer - Published on
Format: Paperback
This is an excellent book chock-full of example code that is presented in a logical and practical manner. The only down side (not the author's fault) is the availability of ksh93 on some Unix platforms (e.g. Solaris 2.5/2.6 uses the older ksh88 version). Regardless, there are still good examples for ksh88 programmers. Oh, I can't rate the enclosed CD-ROM as I have not used it yet. If the CD is any good it will be icing on the cake.
2 of 2 people found the following review helpful
HASH(0xa3dce054) out of 5 stars Great Kornshell Book Oct. 12 2001
By M. Schmidt - Published on
Format: Paperback
Rosenberg's book is excellent. Full of examples and solutions to everyday problems. I've not used the CD-ROM so can't rate it. Note: too bad the older ksh88 is so widely used vs. ksh93. However, with Solaris 6, 7 and 8 you can have both using /bin/ksh (88) and /usr/dt/bin/dtksh (93). Using the later might just pull me away from perl programming given all the powerful features in ksh93. Great book and a great shell.
2 of 2 people found the following review helpful
HASH(0xa3dce3c0) out of 5 stars Another #1 'Must Have' Book For Any Serious SysAdmin Jan. 10 1999
By - Published on
Format: Paperback
Barry Rosenberg has done it again. This time with more flair and vision for what Kornshell can do! I purchased his original book on Kornshell and practically wore the cover off of it. He has taken a great book and made it even better! I will recommended this one to everyone I can talk to as well. Looks like this new edition will replace his other book on my bookshelf. Simply Outstanding!