Please contact or Mt Xia for assistance with all your shell programming needs.
9. OPTIONAL CHAPTER - KORNSHELL PROGRAMMING
The KornShell is a command-programming language that executes commands read from a terminal or file. The KornShell is close to being upward compatible with the standard BourneShell. For example, scripts written for the BourneShell (sh) will also work in the KornShell (ksh). The major enhancements are command-line reentry, in-line command editing, and aliasing. This chapter will deal with some, not all, of the features that differentiate it from the BourneShell. For your information, here is a list of features that have been enhanced from Bourne. Improvements have been made as a command language, including command-line editing, a command history mechanism, command-name aliasing, job control, new capabilities for cd, and tilde expansion. Improvements as a Programming Language include a more general I/O mechanism, Menu selection primitive, Built-in integer arithmetic, Substring operators, Array variables and attributes, More-general function facility, Co-process facility, Easier to debug, Better performance, and Better security. The KornShell is a high level programming language and a command line interpreter.
Command Format: ksh [acefhikmnorstuvx] [ -o option]...[args] See the appendix for a complete list of options |
Command Format: alias [-tx] [name=value] -t = to set and list tracked aliases -x = to set or display exported aliases name = if specified, it must be a valid alias name value = value to equate with name |