Book HomeBook TitleSearch this book

0.4. Code Examples

This book is full of examples of shell commands and programs that are designed to be useful in your everyday life as a user, not just to illustrate the feature being explained. From Chapter 4 onwards, we include various programming problems, which we call tasks, that illustrate particular shell programming concepts. Some tasks have solutions that are refined in subsequent chapters. The later chapters also include programming exercises, many of which build on the tasks in the chapter.

You should feel free to use any code you see in this book and pass it along to friends and colleagues. We especially encourage you to modify and enhance it yourself. The code is available from this book's web site: http://www.oreilly.com/catalog/korn2/.

If you want to try examples but you don't use the Korn shell as your login shell, you must put the following line at the top of each shell script:

#! /bin/ksh

If your Korn shell isn't installed as the file /bin/ksh, or if /bin/ksh is the 1988 version, substitute the full pathname for your version of ksh93 in the above.



Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.