Korn Shell: Unix and Linux Programming Manual, Third Edition, The By Anatole Olczak
Table of Contents
Executing Korn Shell Scripts
The [[...]] Command
Control Commands
Input/Output Commands
Misc Programming Features
Besides providing a working environment and executing commands, the Korn shell is also a high-level programming language that can be used to write programs. In Korn shell terminology, these programs are called scripts. Korn shell scripts can contain anything that you enter at the command prompt: normal Unix commands, Korn shell commands, your own programs and scripts, or even commands from other Unix shells! Unlike many high-level programming languages, Korn shell scripts are interpreted, so they do not have to be compiled. This makes the Korn shell ideal for prototyping.