Chapter 2. Korn Shell Basics

Simple Script

Process Execution

Input/Output Redirection

File Name Substitution

Command Substitution

Tilde Substitution

This chapter covers some of the basic features of the Korn shell. If you've worked with the Bourne and/or C shells, then most of the Process Execution section will be a review of what you are already familiar with. The Input/Output Redirection section shows how you can use the special Korn shell I/O operators with regular commands to perform more sophisticated programming tasks. The last three sections in this chapter, File Name Substitution, Command Substitution, and Tilde Substitution show you how these powerful features can be used as shortcuts to help simplify your work.

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.