Chapter 8. Writing Korn Shell Scripts

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.

Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.