Summary:
This book is a self-paced tutorial based entirely on short, focused examples that demonstrate central concepts and effective programming techniques, with the newest version of KornShell, KSH93. It also provides coverage of such significant developments as CGI programming with KornShell, and offers an in-depth look at KornShell string handling. Taking a lighthearted, tongue-in-cheek approach, the book lightens the task of learning all the KornShell essentials; highlighted "Beware" sections warn you of potential pitfalls and keep you on track. The accompanying CD-ROM contains the U/WIN package of popular Unix utilities for Windowsr 95/98/NT, KSH93 binaries, the Apache web server, and the examples from the book.
Table of Contents:
List of Tables ..... xv
List of Figures ..... xvii
Preface... That No One Will Ever Read ..... xix
Author's Note Regarding the ksh93 Edition ..... xx
Chapter 1: Before Writing Your First KornShell Scripts ..... 1
Chapter 2: Getting Started ..... 5
Chapter 3: Data Types ..... 25
Chapter 4: Math ..... 43
Chapter 5: Pattern Matching ..... 57
Chapter 6: Conditions ..... 73
Chapter 7: Loops ..... 103
Chapter 8: Creating Menus ..... 127
Chapter 9: Command Line Arguments and Positional Parameters ..... 141
Chapter 10: Functions ..... 163
Chapter 11: Start-Up Scripts and Environments ..... 197
Chapter 12: Input and Output ..... 209
Chapter 13: Manipulating Strings ..... 255
Chapter 14: KornShell Reserved Variables ..... 283
Chapter 15: Foreground, Background, and Signaling ..... 309
Chapter 16: Command Line Editing and the History File ..... 325
Chapter 17: Writing CGI Scripts ..... 335
Appendix A: Statement and Alias Quick Reference ..... 369
Appendix B: Just Enough HTML ..... 407
Bibliography ..... 417
Index ..... 425