Advanced Shell Programming
with Bourne, Bash, and Korn Shells
View / print PDF course outline.
Technical personnel who create, maintain, or use shell programs.
Upon successful completion of this course you will be able to:
- Use the advanced features of Bourne, Bash, and Korn shells.
Students will be able to understand and use advanced features of the Bourne, Bash, and Korn shells. The course includes more than 50 script examples and dozens of exercises with solutions.
Experience or recent training in UNIX Shell Programming. This course assumes familiarity and experience with:
- UNIX commands including vi,
- Shell commandline features, and
- Basic shell programming constructs.
Lecture and discussion (50%) with interactive exercises (50%).
- Review of Shell programming basics including vi features for programmers
- Arithmetic and Comparisons: expr and let; integers; base 2, 8, and 16
- Handling Options: Options, option-arguments, and getopts
- Signals and trap
- Debugging: set -n, set -v, set -x, and DEBUG
- Functions in sh and ksh: function positional parameters, ksh local variables and
- Korn shell select construct
- Keyword parameters and subprograms
- Modular programs with functions and subprograms
- Variables with eval and set
- ksh arrays
- Variable modifiers and attributes
- Redirection with exec and file descriptors, - , and here documents
- Security: SUID
- Appendix A: Useful Commands
- Appendix B: Interactive Ksh Features