Publisher: O'Reilly Media Released: April 2002 Pages: 432
The Korn shell is an interactive command and scripting language for accessing Unix® and other computer systems. As a complete and high-level programming language in itself, it's been a favorite since it was developed in the mid 1980s by David G. Korn at AT&T Bell Laboratories. Knowing how to use it is an essential skill for serious Unix users. Learning the Korn Shell shows you how to use the Korn shell as a user interface and as a programming environment. Writing applications is often easier and quicker with Korn than with other high-level languages. Because of this, the Korn shell is the most often used shell in commercial environments and among inexperienced users. There are two other widely used shells, the Bourne shell and the C shell. The Korn shell, or ksh, has the best features of both, plus many new features of its own. ksh can do much to enhance productivity and the quality of a user's work, both in interacting with the system, and in programming. The new version, ksh93, has the functionality of other scripting languages such as awk, icon, Perl, rexx, and tcl. Learning the Korn Shell is the key to gaining control of the Korn shell and becoming adept at using it as an interactive command and scripting language. Prior programming experience is not required in order to understand the chapters on basic shell programming. Readers will learn how to write many applications more easily and quickly than with other high-level languages. In addition, readers will also learn about Unix utilities and the way the Unix operating system works in general. The authors maintain that you shouldn't have to be an internals expert to use and program the shell effectively. The second edition covers all the features of the current version of the Korn shell, including many new features not in earlier versions of ksh93, making it the most up-to-date reference available on the Korn shell. It compares the current version of the Korn shell to several other Bourne-compatible shells, including several Unix emulation environments for MS-DOS and Windows. In addition, it describes how to download and build ksh93 from source code. A solid offering for many years, this newly revised title inherits a long tradition of trust among computer professionals who want to learn or refine an essential skill. |
-
Chapter 1 Korn Shell Basics -
What Is a Shell? -
Scope of This Book -
History of Unix Shells -
Getting the 1993 Korn Shell -
Interactive Shell Use -
Files -
Input and Output -
Background Jobs -
Special Characters and Quoting -
Chapter 2 Command-Line Editing -
Enabling Command-Line Editing -
The History File -
Emacs Editing Mode -
Vi Editing Mode -
The hist Command -
Finger Habits -
Chapter 3 Customizing Your Environment -
The .profile File -
Aliases -
Options -
Shell Variables -
Customization and Subprocesses -
Customization Hints -
Chapter 4 Basic Shell Programming -
Shell Scripts and Functions -
Shell Variables -
Compound Variables -
Indirect Variable References (namerefs) -
String Operators -
Command Substitution -
Advanced Examples: pushd and popd -
Chapter 5 Flow Control -
if/else -
for -
case -
select -
while and until -
Chapter 6 Command-Line Options and Typed Variables -
Command-Line Options -
Numeric Variables and Arithmetic -
Arithmetic for -
Arrays -
typeset -
Chapter 7 Input/Output and Command-Line Processing -
I/O Redirectors -
String I/O -
Command-Line Processing -
Chapter 8 Process Handling -
Process IDs and Job Numbers -
Job Control -
Signals -
trap -
Coroutines -
Shell Subprocesses and Subshells -
Chapter 9 Debugging Shell Programs -
Basic Debugging Aids -
A Korn Shell Debugger -
Chapter 10 Korn Shell Administration -
Installing the Korn Shell as the Standard Shell -
Environment Customization -
Customizing the Editing Modes -
System Security Features -
Appendix Related Shells -
The Bourne Shell -
The 1988 Korn Shell -
The IEEE 1003.2 POSIX Shell Standard -
dtksh -
tksh -
pdksh -
bash -
zsh -
Workalikes on PC Platforms -
Appendix Reference Information -
Invocation Options -
Built-in Commands and Keywords -
Predefined Aliases -
Built-in Shell Variables -
Test Operators -
Options -
Typeset Options -
Arithmetic -
Emacs Mode Commands -
vi Control Mode Commands -
Using getopts -
Appendix Building ksh from Source Code -
Korn Shell Web Sites -
What You Can Download -
Building ksh -
Appendix AT&T ast Source Code License Agreement -
Colophon |
- Title:
- Learning the Korn Shell, 2nd Edition
- By:
- Arnold Robbins, Bill Rosenblatt
- Publisher:
- O'Reilly Media
- Formats:
-
- Print
- Safari Books Online
- Print:
- April 2002
- Pages:
- 432
- Print ISBN:
- 978-0-596-00195-7
- | ISBN 10:
- 0-596-00195-9
|
-
Arnold Robbins Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has worked with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. He has been a heavy AWK user since 1987, when he became involved with gawk, the GNU project's version of AWK. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for AWK. He is currently the maintainer of gawk and its documentation. He is also coauthor of the sixth edition of O'Reilly's Learning the vi Editor. Since late 1997, he and his family have been living happily in Israel. View Arnold Robbins's full profile page. |
Colophon Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Learning the Korn Shell is a hawksbill turtle. The name "hawksbill" refers to its prominent hooked beak. This marine reptile is one of the smaller sea turtles, having a carapace (upper shell) length of about two feet and weighing about one hundred pounds. Among pelagic turtles, the hawksbill alone has the tendency to feed and breed in the same area, preferring the tropical shoals and reefs of the world's oceans. Primarily carnivorous, the hawksbill feeds on crabs, fish, sponges, and jellyfish. The turtle's flesh can be poisonous; in some places, fisherman test for poison by throwing the turtle's liver to the crows. If the birds reject the liver, the hawksbill is toxic. The hawksbill turtle is the sole source of authentic "tortoiseshell," which comes from the scutes, or outer layer of the carapace. Tortoiseshell has been harvested through the years-from ancient Egypt to the present-and is highly valued for its beauty and plasticity. As a result, the hawksbill is endangered. Illegal trade continues to threaten this species' existence. Leanne Soylemez was the production editor and proofreader for Learning the Korn Shell, Second Edition. Kate Briggs was the copyeditor. Mary Brady and Jane Ellin provided quality control. Brenda Miller wrote the index. Edie Freedman designed the cover of this book. The cover image is a 19th-century engraving from the Dover Pictorial Archive. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's ITC Garamond font. Melanie Wang and David Futato designed the interior layout based on a series design by Nancy Priest. The print version of this book was created by translating the DocBook XML markup of its source files into a set of gtroff macros using a filter developed at O'Reilly & Associates by Norman Walsh. Steve Talbott designed and wrote the underlying macro set on the basis of the GNU troff -mgs macros; Lenny Muellner adapted them to XML and implemented the book design. The GNU groff text formatter version 1.11.1 was used to generate PostScript output. The text and heading fonts are ITC Garamond Light and Garamond Book; the code font is Constant Willison. The illustrations that appear in the book were produced by Robert Romano, Jessamyn Read, and Chris Reilley, using Macromedia FreeHand 9 and Adobe Photoshop 6. This colophon was written by Michael Kalantarian. |
|
Description
|
Table of Contents
|
Product Details
|
About the Author
|
Colophon
|
 |
|
 |
|
|
|
Recommended for You
|
Recently Viewed
|
 |
|
By Chris Shiflett
October 2005
Ebook: $23.99
Print & Ebook: $32.95
Print: $29.95
By Steven Feuerstein
October 1999
By Toby Segaran
August 2007
Ebook: $31.99
Print & Ebook: $43.99
Print: $39.99
|
Customer Reviews
10/17/2011 4.0Good source of learning - Accurate
- Concise
- Easy to understand
- Helpful examples
- Well-written
- Intermediate
- Novice
- Student
10/2/2006 (4 of 4 customers found this review helpful) 5.0Great book for learning and reference By driftnet from Undisclosed 9/28/2002 (1 of 4 customers found this review helpful) 1.0Learning the Korn Shell, 2nd Edition Review
|
|
|