E-Book Overview
This Nutshell Handbook® is a thorough introduction to the Korn shell, both as a user interface and as a programming language. The Korn shell, like the C and Bourne shells, is a program that interprets UNIX commands. It has many features that aren't found in other shells, including command history (the ability to recall and edit previous commands). The Korn shell is also faster; several of its features allow you to write programs that execute more quickly than their Bourne or C shell equivalents. This book provides a clear and concise explanation of the Korn shell's features. It explains ksh string operations, co-processes, signals and signal handling, and one of the worst "dark corners" of shell programming: command-line interpretation. It does this by introducing simple real-life examples and then adding options and complexity in later chapters, illustrating the way real-world script development generally proceeds. An additional (and unique) programming aid, a Korn shell debugger (kshdb), is also included. Learning the Korn Shell is an ideal resource for many UNIX users and programmers, including software developers who want to "prototype" their designs, system administrators who want to write tools for their own use, and even novices who just want to use some of ksh's more advanced interactive features.
E-Book Content
By Bill Rosenblatt; ISBN 1-56592-054-6, 336 pages. First Edition, June 1993. (See the catalog page for this book.)
Search the text of Learning the Korn Shell.
Index Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Table of Contents Preface Chapter 1: Korn Shell Basics Chapter 2: Command-line Editing Chapter 3: Customizing Your Environment Chapter 4: Basic Shell Programming Chapter 5: Flow Control Chapter 6: Command-line Options and Typed Variables Chapter 7: Input/Output and Command-line Processing Chapter 8: Process Handling Chapter 9: Debugging Shell Programs Chapter 10: Korn Shell Administration Appendix A: Related Shells Appendix B: Reference Lists Appendix C: Obtaining Sample Programs
The UNIX CD Bookshelf Navigation Copyright © 1998 O'Reilly & Associates. All Rights Reserved.
Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Index: Symbols and Numbers ! built-in variable : 8.4.2. Process ID Variables and Temporary Files keyword in next release : A.7. The Future of the Korn Shell negating a condition test : 5.1.3.3. File Attribute Checking negation in character sets : 1.6.2. Filenames and Wildcards POSIX shell keyword : A.2. The IEEE 1003.2 POSIX Shell Standard regular expression operator 4.3.2.1. Regular expression basics 4.3.2.2. Korn shell versus awk/egrep regular expressions # ## pattern-matching operator 4.3.3. Pattern-matching Operators 6.2.2. Arithmetic Variables and Assignment built-in variable : 4.2.1. Positional Parameters comments : 4.3.1. Syntax of String Operators length operator : 4.3.4. Length Operator pattern-matching operator 4.3.3. Pattern-matching Operators 4.5. Advanced Examples: pushd and popd 5.5. while and until size of an array : 6.3. Arrays $ $' ANSI C string delimiter in next release : A.7. The Future of the Korn Shell $(( )) : (see arithmetic expressions) built-in variable 2.2. The History File 8.4.2. Process ID Variables and Temporary Files % %% pattern-matching operator 4.3.3. Pattern-matching Operators 4.5. Advanced Examples: pushd and popd 5.5. while and until
6.2.2. Arithmetic Variables and Assignment pattern-matching operator 4.3.3. Pattern-matching Operators 5.2. for 5.3. case specifying jobs 8.2.1. Foreground and Background 8.3.2. kill A.1. The Bourne Shell & : (see background jobs) && for condition tests 5.1.3.3. File Attribute Checking A.1. The Bourne Shell for exit statuses 5.1.2. Combina